Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- wid=/tmp/conkywid
- state=/tmp/conkystate
- case $1 in
- start)
- foo=`xdotool search --name "Conky"`
- echo $foo > "$wid"
- xdotool windowunmap "$foo"
- ;;
- *)
- test -f "$wid" && foo="`<$wid`" || exit 1
- test -f "$state" && bar="`<$state`" || bar="0"
- if test "$bar" = "0"; then
- xdotool windowmap "$foo"
- echo 1 > "$state"
- else
- xdotool windowunmap "$foo"
- echo 0 > "$state"
- fi
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement