dotfiles/config/i3status/status.sh

8 lines
200 B
Bash
Raw Normal View History

2015-11-29 12:06:21 +00:00
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)