You are not logged in.

#1 2024-02-01 14:02:13

Jimbo_G
Member
From: France
Registered: 2017-05-12
Posts: 324

[Solved] tint2 systray_name_filter issue

Recently updated to Boron.

In my previous tint2 configs I have used systray_name_filter = Network to hide the nm-applet icon, but it's not working in Boron, the icon is still in the tray after restarting tint2. I've also tried systray_name_filter = nm-applet but it's still there. Has something changed to make this not work?

I can't see anything in the tint2 wiki...

It's probably unrelated but the nm-applet icon is not the same as in the official Boron screenshot - I have been messing around with the tint2 config so that could be my fault.

Last edited by Jimbo_G (2024-02-04 09:52:11)

Offline

#2 2024-02-01 14:04:55

Jimbo_G
Member
From: France
Registered: 2017-05-12
Posts: 324

Re: [Solved] tint2 systray_name_filter issue

Attempting to post a screenshot:
iSGAGCEt.jpg

Offline

#3 2024-02-02 00:59:10

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: [Solved] tint2 systray_name_filter issue

Jimbo_G wrote:

Recently updated to Boron.

In my previous tint2 configs I have used systray_name_filter = Network to hide the nm-applet icon, but it's not working in Boron, the icon is still in the tray after restarting tint2. I've also tried systray_name_filter = nm-applet but it's still there. Has something changed to make this not work?
I can't see anything in the tint2 wiki...

I have never used that config, but the wiki says it's a regex based on the icon name. I tried things like nm- (the nm-applet icons change but they all seem to start with nm-) but nothing worked. Even used strace to get the icon name, but even the full icon name didn't work. Finally ran 'tint2 -c /path/to/my/tint2rc' to see:

add_icon: 37748765 (Ethernet network connection ?Wired connection 1? active), pid 6358, visual 0x555ecde8ed30, colormap 37748743, depth 32, width 22, height 22

so in tint2rc I tried:

systray_name_filter = connection

and ran tint2 again, which blocked the icon. Tint2 output in terminal:

tint2: Filtering out systray icon 'Ethernet network connection ?Wired connection 1? active'

So it looks as if it's not filtering on the actual icon name, but on the name tint2 is applying to it. Maybe 'network' (lower-case) would have worked too.

Unfortunately, after a reboot all was not well. The nm-applet icon was displayed, but disappeared when hovered over. nm-applet had crashed - htop showed no such process. So there seems to be something wrong with tint2's handling of systray_name_filter. Feel free to play with this some more...

But why do you want to hide the icon? If you don't need the nm-applet anyway, better not to start it at all.

It's probably unrelated but the nm-applet icon is not the same as in the official Boron screenshot - I have been messing around with the tint2 config so that could be my fault.

The icon changes depending on the situation. There's a different icon for a wired connection (BL screenshot) from wireless.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#4 2024-02-02 07:53:19

Jimbo_G
Member
From: France
Registered: 2017-05-12
Posts: 324

Re: [Solved] tint2 systray_name_filter issue

^ thanks, I'll have a look later. I did already try network (all lower-case) but if it's okay to just not start nm-applet then I'll go that route instead.

As I generally do the same changes each release of BL, I only think about what I'm doing when something doesn't work! So I'm not sure why I started hiding nm-applet using the Tint2 settings, maybe there was a good reason a few years ago

Offline

#5 2024-02-03 03:09:32

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: [Solved] tint2 systray_name_filter issue

nm-applet is just an interface to network-manager, which would continue running without it. You'd have to find other ways of controlling network-manager though. (There is already a menu item User Settings > Network Connections which will bring up the same GUI that "Edit connections..." gives you from nm-applet.)

If you're on a wired connection you might not need network-manager at all.

Last edited by johnraff (2024-02-03 03:10:21)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#6 2024-02-04 09:51:49

Jimbo_G
Member
From: France
Registered: 2017-05-12
Posts: 324

Re: [Solved] tint2 systray_name_filter issue

I just disabled nm-applet following the instructions here: https://wiki.archlinux.org/title/XDG_Autostart

I am on a wired connection but I don't feel the need to remove network-manager, I just like having a minimal system tray

Offline

#7 2024-02-04 10:36:23

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,737

Re: [Solved] tint2 systray_name_filter issue

One could also replace it with a little fancy textual '✓' (almost invisible) via nmcli/tint2 executor logic.
The script: https://github.com/brontosaurusrex/buce … bin/nmCont
old scrot: https://i.imgur.com/ZXqkTY7.png
chatgpt explanation: https://chat.openai.com/share/eeea752c- … b7567c805a

Offline

#8 2024-02-07 07:02:53

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: [Solved] tint2 systray_name_filter issue

Jimbo_G wrote:

Attempting to post a screenshot:
https://i.imgur.com/iSGAGCEt.jpg

Perfect. That's how one posts a linked thumbnail scrot.


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

Board footer

Powered by FluxBB