X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/c2682990e19c06e6aef1b6fca7bfda2a5658f69c..ea12a46a4ecb2168327dda544b2f212abdb5147e:/awesome/topbar.lua diff --git a/awesome/topbar.lua b/awesome/topbar.lua index 84a7b5a..c18303b 100644 --- a/awesome/topbar.lua +++ b/awesome/topbar.lua @@ -1,12 +1,13 @@ -- Widget and layout library -wibox = require("wibox") --- my widgets -require("widgets") +local wibox = require("wibox") --- {{{ Wibox +-- my widgets +local volume_widget = require("widgets/volume_widget") +local battery_widget = require("widgets/battery_widget") -- Create a textclock widget mytextclock = awful.widget.textclock() +-- {{{ Wibox -- Create a wibox for each screen and add it mywibox = {} mypromptbox = {} @@ -86,8 +87,8 @@ 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(volwidget) + right_layout:add(volume_widget) + right_layout:add(battery_widget) right_layout:add(mytextclock) right_layout:add(mylayoutbox[s])