Created
June 5, 2017 19:30
-
-
Save mikeshardmind/1c8b551875de3f475c5d45fce5614d4e to your computer and use it in GitHub Desktop.
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 | |
#Automatically Raises the Dofus window that is flashing | |
while [ 1 -lt 2 ] ; do | |
for id in `xdotool search --class "Dofus"`; do | |
xprop -id $id | grep "The urgency hint bit is set" > /dev/null 2>&1 | |
if [ "$?" = "0" ]; then | |
wmctrl -i -a $id | |
fi | |
done | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment