awesome rc.lua update

This commit is contained in:
Johannes Findeisen 2021-03-18 06:21:05 +01:00
commit 690205156a
No known key found for this signature in database
GPG key ID: 2128DE136929E573
2 changed files with 24 additions and 24 deletions

View file

@ -48,7 +48,7 @@ awful.screen.connect_for_each_screen(function(s)
cpuwidget, cpuwidget,
---batterywidget, ---batterywidget,
--thermalwidget, --thermalwidget,
myweather.icon, --myweather.icon,
wibox.widget.systray(), wibox.widget.systray(),
mytextclock, mytextclock,
s.mylayoutbox, s.mylayoutbox,

View file

@ -126,29 +126,29 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ
-- }}} -- }}}
-- {{{ Vicious widgets -- {{{ Vicious widgets
batterywidget = wibox.widget.textbox() --batterywidget = wibox.widget.textbox()
vicious.register(batterywidget, vicious.widgets.bat, "$1$2% / ", 20, config.battery) --vicious.register(batterywidget, vicious.widgets.bat, "$1$2% / ", 20, config.battery)
netwidget = wibox.widget.textbox() --netwidget = wibox.widget.textbox()
vicious.register(netwidget, vicious.widgets.net, --vicious.register(netwidget, vicious.widgets.net,
'<span color="green">⇩${'..config.net_device..' down_kb}</span> / <span color="#C83321">${'..config.net_device..' up_kb}⇧</span> ', 1) --'<span color="green">⇩${'..config.net_device..' down_kb}</span> / <span color="#C83321">${'..config.net_device..' up_kb}⇧</span> ', 1)
thermalwidget = wibox.widget.textbox() --thermalwidget = wibox.widget.textbox()
vicious.register(thermalwidget, vicious.widgets.thermal, "$1°C ", 20, config.thermal_zone ) --vicious.register(thermalwidget, vicious.widgets.thermal, "$1°C ", 20, config.thermal_zone )
myweather = lain.widget.weather({ --myweather = lain.widget.weather({
APPID = config.openweather_api_key, -- APPID = config.openweather_api_key,
city_id = config.cityid, -- city_id = config.cityid,
notification_preset = { font = beautiful.font }, -- notification_preset = { font = beautiful.font },
notification_text_fun = function (wn) -- notification_text_fun = function (wn)
local day = os.date("%a %d", wn["dt"]) -- local day = os.date("%a %d", wn["dt"])
local tmin = math.floor(wn["temp"]["min"]) -- local tmin = math.floor(wn["temp"]["min"])
local tmax = math.floor(wn["temp"]["max"]) -- local tmax = math.floor(wn["temp"]["max"])
local desc = wn["weather"][1]["description"] -- local desc = wn["weather"][1]["description"]
return string.format("<b>%s</b>: %s, %d°C/%d°C ", day, desc, tmin, tmax) -- return string.format("<b>%s</b>: %s, %d°C/%d°C ", day, desc, tmin, tmax)
end, -- end,
}) --})
myweather.attach(myweather.icon) --myweather.attach(myweather.icon)
cpuwidget = awful.widget.graph() cpuwidget = awful.widget.graph()
cpuwidget:set_width(100) cpuwidget:set_width(100)