Skip to content

Instantly share code, notes, and snippets.

@TiZ-HugLife
Created March 27, 2015 19:29
Show Gist options
  • Save TiZ-HugLife/84372168349c71763e61 to your computer and use it in GitHub Desktop.
Save TiZ-HugLife/84372168349c71763e61 to your computer and use it in GitHub Desktop.
conky-toggle
#!/bin/bash
if [[ "$(cat /tmp/.conkystate)" = "above" ]]; then
STATE="below"
REMOVE="above"
else
STATE="above"
REMOVE="below"
fi
echo $STATE > /tmp/.conkystate
for t in Todo-Conky QuodLibet-Conky QuodLibet-Conky-Cover; do
wmctrl -F -r $t -b remove,$REMOVE
wmctrl -F -r $t -b add,$STATE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment