Skip to content

Instantly share code, notes, and snippets.

@kbingham
Forked from anonymous/officespace
Last active January 29, 2016 10:41
Show Gist options
  • Save kbingham/10879053 to your computer and use it in GitHub Desktop.
Save kbingham/10879053 to your computer and use it in GitHub Desktop.
#!/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