X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/fb657354cd3a63f8415f7ee4716903c18c5ed549..c98ff8ea47598e577c5a23a94efdfb0a6eaf22e9:/awesome/topbar.lua diff --git a/awesome/topbar.lua b/awesome/topbar.lua index e40b474..4d5d505 100644 --- a/awesome/topbar.lua +++ b/awesome/topbar.lua @@ -5,11 +5,10 @@ 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('│') --- {{{ Wibox +-- Wibox {{{1 -- Create a wibox for each screen and add it mywibox = {} mypromptbox = {} @@ -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) @@ -108,4 +109,3 @@ for s = 1, screen.count() do mywibox[s]:set_widget(layout) end --- }}}