Show hostname on statusbar

This commit is contained in:
Geoffrey Frogeye 2015-11-29 13:06:21 +01:00
parent d595d0bcf0
commit 76a4051d09
2 changed files with 8 additions and 1 deletions

7
config/i3status/status.sh Executable file
View file

@ -0,0 +1,7 @@
i3status | (read line && echo $line && read line && echo $line && while :
do
read line
dat=$(cat /etc/hostname)
dat="[{ \"full_text\": \"${dat}\" },"
echo "${line/[/$dat}" || exit 1
done)