Current window name in i3status
Given the very tiling nature of i3, the name of the current window can be hard to impossible to decipher, particularly those looooong-ass web page titles.
The following Python script gets said title - doesnβt choke when there is none - and echoes it to a one-line file that can be in turn read by i3status.

See ~/.config/i3/i3status.conf
below.
1 | #!/usr/bin/env python3 |
in ~/.config/i3/i3status.conf
1 | order += "read_file current_window_name" |
Remember to install i3ipc
1 | python3 -m pip install i3ipc |
NB if you do things the right way, you donβt have to remember all of that. Everything above is automatically installed on each and every of my new machines.
Stay tuned for more about just that - automatic deployment and maintaintance using a single, simple shell script instead of mastodons like Guix - and more.