[i3] How do i make the transition to Polybar?

Fresh install of Endeavour and my first time using i3. I disabled the i3status bar in the i3 config, installed polybar and made it execute alongside i3, but it is not displaying systray icons, and if i’m not mistaken they should appear by default. What should i do to disable the i3bar completely and have systray icons in polybar ?

Are you sure you don’t want to use tint2 instead? It’s a bit more straight-forward/easier to configure, and you can put your systray anywhere on the bar.

OH! And you actually have clickable window buttons, if you want those.

tint2: https://archlinux.org/packages/extra/x86_64/tint2/


It can be top, bottom, left, or right.

1 Like

Backups are recommended before editing any files

i3bar
To disable the i3 bar you should have a section in the config file with the following header

############################################
# bar settings (input comes from i3blocks) #
############################################

Comment all lines until the next header.

Polybar
Polybar now uses a module for systray, and you can add tray to any of the lines in modules-{left,center,right} found in the polybar config.ini. In mine I have tray at the end of modules-right

modules-right = battery pulseaudio num wireguard date tray

Now in modules.ini add

[module/tray]
type = internal/tray
format-margin = 8px
tray-spacing = 8px

Polybar generally restarts itself when files are edited, but a restart may be needed.

1 Like

I will check it out, thanks for the recommendation !

That’s it ! Thank you !

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.