Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [code]
- #!/bin/sh
- # shell script to prepend i3status with more stuff
- i3status --config ~/.i3/i3status.conf | while :
- do
- read line
- muz=$(mocp -Q %file | sed -e 's_/.*/__' -e 's/\.[^\.]*$//' -e 's/_/ /g')
- wifi=$(awk 'NR==3 {printf("%2.2d\n", ($3/70)*100)}' /proc/net/wireless)
- disk=$(df -H / | awk 'NR==2 {print $4 " (" $5 ")"}')
- time=$(date +%H:%M)
- date=$(date +%d.%m.%y)
- echo "♪ $muz :: 𐌒 $wifi% :: ⚎ $disk :: $date . $time" || exit 1
- done
- [/code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement