You are not logged in.

#1 2024-04-08 09:59:21

bepnos
Member
Registered: 2024-04-08
Posts: 1

i3 disable specific system trays

Hello,

I would like to disable all system trays except for "nm-applet"  since I find this very convenient to connect to wifi networks. I know you can disable the entire system tray with

tray_output none

but then I lose the nm-applet. Is there any way to disable specific trays since some apps like "slack" there doesn't seem to be an option in the settings of the app itself to disable the tray icon, per the title I am using i3 as my wm.

Thanks in advance !

Offline

#2 2024-05-17 16:16:30

Maritim
Member
Registered: 2024-05-17
Posts: 10

Re: i3 disable specific system trays

From looking at the documentation at https://i3wm.org/docs/userguide.html#_tray_output and the source code for i3 https://github.com/i3/i3/blob/next/i3bar/src/xcb.c it doesn't seem like this can be configured per application. It's either all or nothing, sadly.

Are you sure there's no way to disable the Slack tray icon? There used to be an option for leaving the app running in the tray when closing it. According to their own help center there still is an option for this: https://slack.com/help/articles/2013551 … ns#linux-4

Offline

#3 2024-05-19 21:28:09

Maritim
Member
Registered: 2024-05-17
Posts: 10

Re: i3 disable specific system trays

Your forum post inspired me to attempt to add this functionality to i3. I've done this over at https://github.com/Maritims/i3 (check the readme) and packaged it in a custom repo.

If you add my custom repo to your pacman configuration you can install my patched version of the most recent release i3-wm release which lets you ban specific applications from adding their icons to the tray.

The repo URL is https://maritims.github.io/arch-repo/x86_64

Offline

Board footer

Powered by FluxBB