How to display running apps on the i3 status bar

So in the past there used to be a section here which had icons of apps running in the background, such as MegaSync, Slack and whatnot, which I could right click to close the app or left click to show it etc.
image
I don’t know if I did some sort of setup wrong, I suspect it could be related to my output display somehow?

i3 bar config:

# Start i3bar to display a workspace bar
# (plus the system information i3status finds out, if available)
bar {
		font pango:Noto Sans Regular 10, FontAwesome 10
		status_command i3blocks -c ~/.config/i3/i3blocks.conf
	    	position bottom
#	    	i3bar_command i3bar --transparency
# it could be that you have no primary display set: set one (xrandr --output <output> --primary)
# reference: https://i3wm.org/docs/userguide.html#_tray_output
		    tray_output primary
		    tray_padding 0

# When strip_workspace_numbers is set to yes,
# any workspace that has a name of the form
# “[n][:][NAME]” will display only the name.
strip_workspace_numbers yes
##strip_workspace_name no

		    colors {
		    separator          $purple
		    background         $darkgrey
		    statusline         $white
#                          		border 		        bg		txt		indicator
		focused_workspace	$mediumgrey	   	$grey		$darkgrey	$purple
		active_workspace	$lightblue      	$mediumgrey	$darkgrey	$purple
		inactive_workspace	$darkgrey   		$darkgrey	$grey		$purple
		urgent_workspace	$urgentred	    	$urgentred	$white		$purple
	}

    #status_command i3status
    #tray_output primary
}

i3blocks.conf

# Global properties
#
# The top properties below are applied to every block, but can be overridden.
separator=false
markup=pango

# Disk usage
#
# The directory defaults to $HOME if the instance is not specified.
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
[disk]
label=
instance=/
command=~/.config/i3/scripts/disk
interval=120

# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
[memory]
label=R: 
command=~/.config/i3/scripts/memory
interval=2

[cpu_usage]
label=C: 
command=~/.config/i3/scripts/cpu_usage
# min_width=CPU: 100.00%
interval=2

[CPU-temperature]
label=
command=~/.config/i3/scripts/temperature
interval=30

[simple-2]
full_text=: :
color=#717171

[pavucontrol]
full_text= 
command=pavucontrol

[volume-pulseaudio]
command=~/.config/i3/scripts/volume
instance=Master
interval=1

[keybindings]
full_text= 
command=~/.config/i3/scripts/keyhint

# power-profiles-daemon implementation:
# needs package power-profiles-daemon installed and the service running see here:
# https://wiki.archlinux.org/title/CPU_frequency_scaling#power-profiles-daemon

#set power-profile
#[ppd_menu]
#full_text= 
#command=~/.config/i3/scripts/power-profiles
#color=#407437

#Show the current power-profile
#[ppd-status]
#command=~/.config/i3/scripts/ppd-status
#interval=5

[time]
#label= 
command=date '+%a %d %b %H:%M:%S'
interval=1

[shutdown_menu]
full_text= 
command=~/.config/i3/scripts/powermenu

[simple-2]
full_text=: :
color=#717171

# should I put something here?

I am currently running XFCE with i3, due to my capture device outputting at resolutions that I found exceedingly difficult to properly scale i3 with using xrandr, but very easy to fix using XFCE, don’t know if that may have something to do with it.

Would you be opposed to using a more universal panel like tint2? If not, try it out.
It’s just 1.5 MB extra. I use it across i3, Cinnamon, Openbox, Bspwm, and dk.

This way, you can have the same panel in both i3 and Xfce, plus you get clickable window buttons if you ever feel like clicking rather than using the keyboard to switch windows.
Also, it’s highly customisable if you like to rice your panel.

This is what I love about Linux after all, if something will work better with your setup, then use it

Gave it a shot, and I’m loving it, was so easy to setup, didn’t even take me 30 min to be happy with it, thank you for the tip!

image

2 Likes

You’re welcome. Glad it suits your needs.

That said, in case someone can find a solution to your question, you should leave this thread open for now.

@soupcookie ,
This not exactly you asked for. Moving from a simple to the less simple ‘solutions’.
select in config $mod+t or F10

bindsym F10 exec --no-startup-id rofi -show window \
		-config ~/.config/rofi/rofidmenu.rasi

and/or the same with a clickable icon in i3blocks

[apps]
full_text= 
label=W
command=i3-msg -q exec "rofi -show window -config $HOME/.config/rofi/rofiapps.rasi"

rofiapps.rasi

@import "~/.config/rofi/config.rasi"
window {
location:	 south;
anchor:		 south;
height:		 30%;
width:		 18%;
orientation:     horizontal;
}

This is very basic no right-click but you can skip to the app. window and press Super+q to close.
What I haven’t tested the BLOCK_BUTTON here after 3:00