Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 5th, 2015 178 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top