hyprland-plugins icon indicating copy to clipboard operation
hyprland-plugins copied to clipboard

Hyprbars: Is it possible to show hyprbars for a select group of windows?

Open itsfirestorm opened this issue 1 year ago • 5 comments

Simple use case of my issue:

I sometimes run clones of Virtual Machines, and it is impossible to differ one from another without checking the name, explicitly saying (clone), I saw that there is an option to exclude specific windows from using hyprbars, would it be possible to allow only one single class or multiple in a window rule to use hyprbars without excluding every single application I have installed?

itsfirestorm avatar Nov 06 '24 08:11 itsfirestorm

negative regex?

vaxerski avatar Nov 06 '24 22:11 vaxerski

@vaxerski I've tried

windowrulev2 = plugin:hyprbars:nobar,class:negative:org.pulseaudio.pavucontrol

and

windowrulev2 = plugin:hyprbars:nobar,negative:class:org.pulseaudio.pavucontrol

to try to just get the bar to show up on pulse audio volume control, but in both cases, the bars appear on all windows.

(on Hyprland v0.47.2)

(removing the negative: makes it appear on everything except pulse audio volume control)

earboxer avatar Feb 22 '25 20:02 earboxer

class:negative:(regex) works for me with opacity 0.5 0.5

vaxerski avatar Feb 23 '25 02:02 vaxerski

I got it to work, but the problem with negative regexes in this use-case is that once you add a second negative regex, neither works:

windowrulev2 = plugin:hyprbars:nobar,class:negative:org.pulseaudio.pavucontrol
windowrulev2 = plugin:hyprbars:nobar,class:negative:org.kde.kweather

(one of these rules by itself is fine, but adding a second makes neither "work")

earboxer avatar May 03 '25 12:05 earboxer

windowrulev2 = plugin:hyprbars:nobar,class:negative:(org\.pulseaudio\.pavucontrol)|(org\.kde\.kweather)

vaxerski avatar May 03 '25 14:05 vaxerski