Closed fanginoort closed 3 years ago
Seems x70b1 was slightly faster :wink:
I tried to change as little as possible, which however wasn't the smartest thing after all. The new commit now includes one case for each state prefix with the comments coming right from herbstluftwm's documentation :)
Thanks @fanginoort !
This adds support for using the info-hlwm-workspaces.sh script on a multi monitor setup.
It expects MONITOR environment variable to be set for each instance of polybar. If the MONITOR variable is not set this will still be working, however there will be no distinction between the different monitors. This enables formatting the tags considering whether the current monitor is focused or not.
Also if one clicks on one of the tags in polybar, the script will ensure that the monitor is focused where the user clicked the tag. This prevents the effect that if one clicks a tag on an unfocused monitor, the tag will change on the other, focused monitor. This is eventually unexpected behaviour.