summaryrefslogtreecommitdiff
path: root/bin/xlaunch
blob: 9f82e70ecee209072d98079aa3d08224ba6db45c (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 Iceweasel || iceweasel &
        ;;
    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