Skip to content

avranju/i3status-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i3status-run

Run arbitrary commands to integrate with i3status

Build

Install Rust with rustup. Then clone this repo and run:

cargo install

Usage

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:

i3status screenshot

About

Run arbitrary commands to integrate with i3status

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages