Last active
December 19, 2015 00:39
-
-
Save atomsfat/5869953 to your computer and use it in GitHub Desktop.
Switch workspace every certain time, util for DIY dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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