clean 🫠

This commit is contained in:
Luca 2023-02-05 03:06:17 +01:00
parent d3435e53a4
commit d16174b447
9565 changed files with 0 additions and 1315422 deletions

View file

@ -1,48 +0,0 @@
-- ## Uptime ##
-- ~~~~~~~~~~~~
-- requirements
-- ~~~~~~~~~~~~
local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local beautiful = require ("beautiful")
local dpi = beautiful.xresources.apply_dpi
-- Icon
local icon = wibox.widget.textbox()
icon.font = "Roboto Medium 24"
icon.align = 'center'
icon.markup = "<span foreground='"..beautiful.yellow.."'>󰍹</span>"
-- Uptime
local uptime = wibox.widget.textbox()
uptime.font = "Roboto Medium 16"
uptime.align = 'center'
local function get_uptime()
local script = [[
uptime -p
]]
awful.spawn.easy_async_with_shell(script, function(stdout)
stdout = string.gsub(stdout, "\n", "")
uptime.markup = stdout
end)
end
gears.timer {
timeout = 60,
autostart = true,
call_now = true,
callback = function()
get_uptime()
end
}
return wibox.widget {
icon,
uptime,
spacing = dpi(10),
layout = wibox.layout.fixed.horizontal,
}