-
-
Notifications
You must be signed in to change notification settings - Fork 693
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
[Bug]: Action triggers button does not respond to clicks after polybar reloads #3007
Comments
The restarted polybar is probably obscured by something, try setting EDIT: |
should i set it to |
I suggested setting |
Here's my config, please have a look and specify where I need to make changes to counter the problem.
|
Currently, I have set |
I see. I assumed you were using the config you originally posted. In that case, try one of the following:
If that doesn't work, please post the output of |
Okay, as you suggested, I've made the necessary changes in my Case: 1 Turning off
|
Thanks for the detailed rundown. Unfortunately, I don't see anything that would prevent polybar from receiving mouse clicks. Just to clarify, you said your reboot and poweroff buttons no longer work after unplugging and
This is expected. Polybar doesn't start new instances by itself. At the moment before you plug in your external monitor, only a single polybar is running. That bar will restart itself because of |
Checklist
Steps to reproduce
Problem occurs only when using dual monitors. When
screenchange-reload = True
and I plug out external monitor, then polybar shuts the external monitor bar and reloads only the main bar for the primary monitor. Polybar does this efficiently but the problems starts when trying to perform certain Action Button Triggers such assystemctl poweroff
orsystemctl reboot
.The polybar successfully terminates the external monitor bar and reloads the main bar but the Action buttons does not perform any actions when clicked.
This problem only occurs when External Monitor is plugged out in between, else everything works good!
Minimal config
Polybar log
No response
Expected behavior
Whenever I plug out the External Monitor, the polybar must terminates the external monitor bar and reload the main bar for the primary monitor and all action buttons must work.
Actual behavior
When the external monitor is plugged out, the polybar terminates the external monitor bar and reload the main bar but the actions buttons stops working, i.e. when clicked, the buttons does not perform any actions.
Note: I use autorandr to auto switch the display profile. To get the action buttons working, I have a postswitch script which executes
i3-msg restart
.Window Manager and Version
i3 version 4.22 (2023-01-02)
Linux Distribution
Arch Linux
Polybar version
Additional Context / Screenshots
No response
The text was updated successfully, but these errors were encountered: