Advertisement
Guest User

Untitled

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