git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/bin/sxs
blob: 7e544ef1f33ec0942c842e8ca5f08d7768d371e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #aaaaaa; font-style: italic } /* Comment */
.highlight .
#!/bin/bash

pidof -s xinit && exit 0

[ -z "$STXTARG" ] && STXTARG="$1"

if [ -z "$STXTARG" ];then
	read -p "Start: e16, xmonad, gnome or kde? " STXTARG
	[ -z "$STXTARG" ] && STXTARG="xmonad"
fi

case "$STXTARG" in
	e16)
		diff ~/.xsession-e16 ~/.xsession &> /dev/null
		[ "$?" -ne 0 ] && ln -sf .xsession-e16 ~/.xsession
	;;
	xmonad)
		diff ~/.xsession-xmonad ~/.xsession &> /dev/null
		[ "$?" -ne 0 ] && ln -sf .xsession-xmonad ~/.xsession
	;;
	gnome)
		diff ~/.xsession-gnome ~/.xsession &> /dev/null
		[ "$?" -ne 0 ] && ln -sf .xsession-gnome ~/.xsession
	;;
	kde)
		diff ~/.xsession-kde ~/.xsession &> /dev/null
		[ "$?" -ne 0 ] && ln -sf .xsession-kde ~/.xsession
	;;
	*)
		echo "Sorry, I don't know $STXTARG as window manager."
		exit 1
	;;
esac

startx