-
-
Save kbingham/10879053 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
launchonce() { | |
app=`basename $1` | |
pidof $app >/dev/null && echo "$app is already running" || $1 & | |
} | |
launchonce_alt() { | |
pidof $2 >/dev/null && echo "$1 is already running" || $1 & | |
} | |
# Configure dual displays to extend desktop | |
disper -d eDP1,HDMI1 -e -t right | |
#launchonce_alt /opt/TeamSpeak3/ts3client_runscript.sh ts3client_linux_amd64 | |
launchonce /usr/bin/thunderbird | |
launchonce /usr/bin/mumble | |
launchonce /usr/bin/xchat | |
sleep 1; | |
echo "Positioning Mumble and XChat" | |
wmctrl -r "Thunderbird" -e 0,1920,530,1280,466 | |
wmctrl -r "Mumble" -e 0,2700,0,500,500 | |
wmctrl -r "XChat:" -e 0,1920,0,776,500 | |
wmctrl -r "TeamSpeak 3" -e 0,2700,0,500,500 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment