Testing window titles in i3blocks

command=echo $(xdotool getactivewindow getwindowname)

You need xdotool installed for this to work, currently I have title showing roughly in the centre of panel. The min_width is really dependant on your own monitor size. This feature is of course part of polybar waybar etc and figured it would be a nice feature to have.

Just thought I would share this in case anyone has a use for it.

1 Like