Skip to content

Instantly share code, notes, and snippets.

@jim80net
Created December 5, 2012 22:54
Show Gist options
  • Save jim80net/4220249 to your computer and use it in GitHub Desktop.
Save jim80net/4220249 to your computer and use it in GitHub Desktop.
Use wmctrl to rotate through workspaces
#!/bin/bash
# rotisascreen.sh
# - Rotate screens on occassion
screenCount=$(wmctrl -d | tail -n 1 | awk '{print $1}')
while true
do
count=1
while [[ $count -le $screenCount ]]
do
wmctrl -s $count
count=$[$count+1]
sleep 15
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment