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,
---batterywidget,
--thermalwidget,
myweather.icon,
--myweather.icon,
wibox.widget.systray(),
mytextclock,
s.mylayoutbox,

View file

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