Last active
October 10, 2016 17:00
-
-
Save EnricoVogt/7a22fb72daa953ecea2bdf00f88e6f20 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 | |
WM_CLASS="nautilus.Nautilus" | |
PROGNAME="nautilus" | |
if [ `wmctrl -lx | grep -c "$WM_CLASS"` != 0 ] | |
then | |
wmctrl -x -a "$WM_CLASS" # If it exists, bring t-bird window to front | |
else | |
$PROGNAME | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment