Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env sh
- : "${wm:=monsterwm}"
- : "${ff:="/tmp/${wm}.fifo"}"
- [ -p "$ff" ] || mkfifo -m 600 "$ff"
- # spawn a statusbar
- while read -t 60 -r line || true; do
- echo "$line" | grep -qEx "(([[:digit:]]+:){4,6}[[:digit:]]+ ?)+" && prev="$line" || line=
- /home/edgar/statusinfo.sh ${line:-$prev}
- done < "$ff" | bar & conky &
- "$wm" > "$ff"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement