diff options
author | Tim Keller <tjkeller.xyz> | 2025-04-16 22:53:53 -0500 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-04-16 22:53:53 -0500 |
commit | b0d338292565fe3fe932215fd628a7482a29e8f0 (patch) | |
tree | 74ac11512ae036b27e4c47973d83c8cc9b1cbd60 /bar.lua | |
parent | 0db16d56d1a167be71b1b464af8f4fef3d052054 (diff) | |
download | awesome-b0d338292565fe3fe932215fd628a7482a29e8f0.tar.xz awesome-b0d338292565fe3fe932215fd628a7482a29e8f0.zip |
volume dropdown overhual functionality make it almost good
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]) |