Skip to content

Instantly share code, notes, and snippets.

@atomsfat
Last active December 19, 2015 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomsfat/5869953 to your computer and use it in GitHub Desktop.
Save atomsfat/5869953 to your computer and use it in GitHub Desktop.
Switch workspace every certain time, util for DIY dashboard
#!/bin/bash
NUMBER_DESkTOP="$(xdotool get_num_desktops)"
CURRENT="0"
echo "Press [CTRL+C] to stop.."
while :
do
xdotool set_desktop $CURRENT
#echo $CURRENT
CURRENT="$(expr $CURRENT + '1')"
if [ "$CURRENT" -gt $NUMBER_DESkTOP ]; then
CURRENT="0"
else
sleep 30
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment