X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/4666dc1fa2364cb7628ef70d17f40b29189dbacf..c98ff8ea47598e577c5a23a94efdfb0a6eaf22e9:/awesome/topbar.lua diff --git a/awesome/topbar.lua b/awesome/topbar.lua index b945d80..4d5d505 100644 --- a/awesome/topbar.lua +++ b/awesome/topbar.lua @@ -5,7 +5,6 @@ local utils = require("utils") local wibox = require("wibox") -- Create a textclock widget -mytextclock = awful.widget.textclock(" %a %b %d, %k:%M ", 10) separator = wibox.widget.textbox() separator:set_markup('│') @@ -92,12 +91,14 @@ for s = 1, screen.count() do right_layout:add(separator) right_layout:add(require("widgets/awesompd")) right_layout:add(require("widgets/volume_widget")) - if utils.host == "chronos" then + if utils.has_battery() then right_layout:add(separator) right_layout:add(require("widgets/battery_widget")) end right_layout:add(separator) - right_layout:add(mytextclock) + right_layout:add(require("widgets/network_widget")) + right_layout:add(separator) + right_layout:add(require("widgets/calendar")) right_layout:add(mylayoutbox[s]) -- Now bring it all together (with the tasklist in the middle)