Last active
January 2, 2017 04:40
-
-
Save mattbell87/243caa6465e093680b76 to your computer and use it in GitHub Desktop.
Bring an app to the foreground on the primary display. Requires xdotool.
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 | |
export DISPLAY=:0 | |
APP=$1 | |
echo Switching to $APP | |
xdotool search --class "$APP" windowactivate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment