summaryrefslogtreecommitdiff
path: root/bin/xlaunch
blob: acf9b5ae2491dd80581e7cce64e481834acf4c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
. $HOME/.shenv

case $1 in
    www)
        wmctrl -a Firefox || firefox &
        ;;
    emacs)
        if ! pgrep emacs; then
            emacs --daemon
        fi
        wmctrl -a emacs@`hostname -f` || emacsclient -c -F "((fullscreen . maximized))" &        
        ;;
    ma)
        urxvttmux "spw@ma"
        ;;
    term)
        urxvttmux local
        ;;
esac