diff options
Diffstat (limited to 'bar.lua')
-rw-r--r-- | bar.lua | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,7 +1,7 @@ local awful = require("awful") local wibox = require("wibox") local beautiful = require("beautiful") -local buttons = require("buttons") +require("buttons") -- load widgets --local mylauncher = require("widgets.button") @@ -50,7 +50,7 @@ local widgets = { widget_ram_usage, wibox.widget.textbox "%", }, - vol = { + vol = wibox.widget { layout = wibox.layout.fixed.horizontal, buttons = volume_buttons, wibox.widget.textbox "VOL: ", @@ -109,6 +109,9 @@ function widgets.right_widgets(s) return wibox.widget { local month_calendar = awful.widget.calendar_popup.month() month_calendar:attach(widgets.textclock, "t", { on_hover = false }) +-- bind volume popup to volume block +volume_control.dropdown.dropdown:bind_to_widget(widgets.vol) + -- create a wibox for each screen and add it awful.screen.connect_for_each_screen(function (s) awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, s, awful.layout.layouts[1]) |