awesome rc.lua update
This commit is contained in:
parent
c0e82e4c54
commit
690205156a
2 changed files with 24 additions and 24 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue