Skip to content

Instantly share code, notes, and snippets.

@mikeshardmind
Created June 5, 2017 19:30
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 mikeshardmind/1c8b551875de3f475c5d45fce5614d4e to your computer and use it in GitHub Desktop.
Save mikeshardmind/1c8b551875de3f475c5d45fce5614d4e to your computer and use it in GitHub Desktop.
#!/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