X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/13d37456af0c7e9a2aaa2e0bedd80def8f51d0f8..d88c507b0c8f204b82702693a249bf1b88c342e9:/awesome/topbar.lua diff --git a/awesome/topbar.lua b/awesome/topbar.lua index c0b6ee7..e6fa423 100644 --- a/awesome/topbar.lua +++ b/awesome/topbar.lua @@ -1,7 +1,20 @@ --- {{{ Wibox +-- utils +local utils = require("utils") + +-- Widget and layout library +local wibox = require("wibox") + +-- my widgets +local volume_widget = require("widgets/volume_widget") +if utils.host == "chronos" then + local battery_widget = require("widgets/battery_widget") +end +local network_widget = require("widgets/network_widget") + -- Create a textclock widget mytextclock = awful.widget.textclock() +-- {{{ Wibox -- Create a wibox for each screen and add it mywibox = {} mypromptbox = {} @@ -81,7 +94,11 @@ for s = 1, screen.count() do -- Widgets that are aligned to the right local right_layout = wibox.layout.fixed.horizontal() if s == 1 then right_layout:add(wibox.widget.systray()) end - --right_layout:add(APW) + right_layout:add(network_widget) + right_layout:add(volume_widget) + if utils.host == "chronos" then + right_layout:add(battery_widget) + end right_layout:add(mytextclock) right_layout:add(mylayoutbox[s])