You are not logged in.

#1 2021-05-06 23:04:36

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

regex to match everything but one thing

The tint2 man page says this in it:

systray_name_filter = string :  Regular expression to identify icon names to be hidden. For example, ^audacious$ will hide icons with the exact name audacious, while aud will hide any icons having aud in the name. (since 0.13.1)

I can use this regex to block everything but nm-applet: [^"NetworkManager\ Applet"] but if I do that, the applet for screenrotator-git still shows up as it doesn't have a name. The applet doesn't do anything, so I don't want it on my bar. I also use blueman-applet and would like to keep that as well, but I can't figure out how to block everything but those two. Here is the output of tint2 without blocking anything

dylan in ~ % > tint2 -c ~/.config/tint2/customtint2rc
tint2: Using glib slice allocator (default). Run tint2 with environment variable G_SLICE=always-malloc in case of strange behavior or crashes
tint2: xRandr: Found crtc's: 3
tint2: xRandr: Linking output eDP-1 with crtc 0, resolution 1920x1080, DPI 158
tint2: xRandr: crtc 1 seems disabled
tint2: xRandr: crtc 2 seems disabled
tint2: No XSETTINGS manager, tint2 uses config option 'launcher_icon_theme'.
tint2: Loading config file: /home/dylan/.config/tint2/customtint2rc
tint2: real transparency on... depth: 32
tint2: panel items: :S:C:
tint2: Systray composited rendering on
tint2: nb monitors 1, nb monitors used 1, nb desktops 1
tint2: panel 1 uses scale 1 
tint2: Kernel uevent interface initialized...
tint2: systray window 83886088
tint2: systray started
add_icon: 79691814 (Bluetooth Active
<b>1 Active Connection</b>), pid 15436, visual 0x55a0179b9210, colormap 79691778, depth 32, width 24, height 24
add_icon: 10485809 (), pid 13664, visual 0x55a0179b9210, colormap 10485765, depth 32, width 22, height 22
add_icon: 58720299 (discord), pid 15246, visual 0x55a0179b9210, colormap 58720263, depth 32, width 24, height 24
add_icon: 75497507 (NetworkManager Applet), pid 15421, visual 0x55a0179b9210, colormap 75497474, depth 32, width 22, height 22
^C
tint2: remove_icon: 75497507 (NetworkManager Applet)
tint2: remove_icon: 58720299 (discord)
tint2: remove_icon: 10485809 ()
tint2: remove_icon: 79691814 (Bluetooth Active
<b>1 Active Connection</b>)

Last edited by AirsoftHamster (2021-05-07 02:25:23)

Offline

Board footer

Powered by FluxBB