Advertisement
Y99drasil

wmrun.sh

Mar 1st, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.35 KB | None | 0 0
  1. #!/usr/bin/env sh
  2.  
  3. : "${wm:=monsterwm}"
  4. : "${ff:="/tmp/${wm}.fifo"}"
  5. [ -p "$ff" ] || mkfifo -m 600 "$ff"
  6.  
  7. # spawn a statusbar
  8. while read -t 60 -r line || true; do
  9.     echo "$line" | grep -qEx "(([[:digit:]]+:){4,6}[[:digit:]]+ ?)+" && prev="$line" || line=
  10.     /home/edgar/statusinfo.sh ${line:-$prev}
  11. done < "$ff" | bar & conky &
  12.  
  13. "$wm" > "$ff"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement