-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pactl volume-widget only updates on one screen #393
Comments
I just noticed that it does update correctly on my secondary display (I am using a dual monitor setup). The displayed value in the statusbar on my primary display stays at the initial value. |
I think this is due to the pactl-widget storing the volume widget it's using in a single variable across all instances. |
One way to handle this is to instantiate the widget only once, out of local myvolume = volume_widget() |
My solution is to place the widget only in the primary screen (in fact, all the widgets are in the primary screen) :
|
For people follows this default rc.lua file, -- Create a textclock widget
mytextclock = wibox.widget.textclock()
-- @DOC_FOR_EACH_SCREEN@
screen.connect_signal("request::desktop_decoration", function(s)
-- Each screen has its own tag table.
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
-- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt()
end) |
The pactl-widget does not update the value when I change the volume.
I am using pipewire on Arch Linux.
All the operations (like click and scroll) on the icon work. The volume also gets changed correctly. Only the icon and value (or bar) do not update (except when restarting the entire WM).
This is what I have in my rc.lua, like mentioned in the README of the widget.
I just cloned the repo to my
~/.config/awesome
directory, so I am using the most recent version of the widgets.The text was updated successfully, but these errors were encountered: