Run arbitrary commands to integrate with i3status
Install Rust with rustup. Then clone this repo and run:
cargo install
If you wanted to show the names of all docker containers running on your PC for
example, create a file such as the following (say, in ~/bin/my_i3status.sh
):
#!/bin/bash
i3status | i3status-run bash -c 'echo "{\"full_text\": \"$(docker ps -a --format "{{.Names}}" | paste -s -d "," - | sed "s/,/, /g")\", \"markup\": \"none\", \"name\": \"containers\"}"'
And change your bar
configuration in i3 to look something like this:
bar {
status_command ~/bin/my_i3status.sh
font pango:monospace 10
}
And you should get something that looks like this: