2016-04-21 22:38:34 +02:00
|
|
|
#!/bin/sh
|
2017-05-20 20:25:18 +02:00
|
|
|
$TERMINAL=urxvt
|
2016-04-21 22:38:34 +02:00
|
|
|
userresources=$HOME/.Xresources
|
|
|
|
usermodmap=$HOME/.Xmodmap
|
|
|
|
sysresources=/etc/X11/xinit/.Xresources
|
|
|
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# merge in defaults and keymaps
|
|
|
|
|
|
|
|
if [ -f $sysresources ]; then
|
|
|
|
xrdb -merge $sysresources
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $sysmodmap ]; then
|
|
|
|
xmodmap $sysmodmap
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f "$userresources" ]; then
|
|
|
|
xrdb -merge "$userresources"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f "$usermodmap" ]; then
|
2017-07-21 10:13:45 +02:00
|
|
|
echo "Found a user modmap at $usermodpad"
|
2016-04-21 22:38:34 +02:00
|
|
|
xmodmap "$usermodmap"
|
|
|
|
fi
|
|
|
|
|
2017-07-21 10:13:45 +02:00
|
|
|
# start gnome keyring daemon
|
|
|
|
dbus-update-activation-environment --systemd DISPLAY
|
|
|
|
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
|
|
|
export SSH_AUTH_SOCK
|
|
|
|
|
2016-04-21 22:38:34 +02:00
|
|
|
# start some nice programs
|
|
|
|
|
|
|
|
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
|
|
|
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
|
|
|
[ -x "$f" ] && . "$f"
|
|
|
|
done
|
|
|
|
unset f
|
|
|
|
fi
|
|
|
|
|
2017-08-10 09:32:59 +02:00
|
|
|
# run xrandr
|
|
|
|
bash /home/marcel/.screenlayout/default.sh
|
|
|
|
|
2017-05-20 20:25:59 +02:00
|
|
|
# Here StumpWM is kept as default
|
2017-01-23 08:17:23 +01:00
|
|
|
session=${1:-stumpwm}
|
2016-04-21 22:38:34 +02:00
|
|
|
|
|
|
|
case $session in
|
|
|
|
awesome ) exec awesome;;
|
|
|
|
bspwm ) exec bspwm;;
|
|
|
|
catwm ) exec catwm;;
|
|
|
|
cinnamon ) exec cinnamon-session;;
|
|
|
|
dwm ) exec dwm;;
|
|
|
|
enlightenment ) exec enlightenment_start;;
|
|
|
|
ede ) exec startede;;
|
|
|
|
fluxbox ) exec startfluxbox;;
|
|
|
|
gnome ) exec gnome-session;;
|
|
|
|
gnome-classic ) exec gnome-session --session=gnome-classic;;
|
|
|
|
i3|i3wm ) exec i3;;
|
|
|
|
icewm ) exec icewm-session;;
|
|
|
|
jwm ) exec jwm;;
|
|
|
|
kde ) exec startkde;;
|
|
|
|
mate ) exec mate-session;;
|
|
|
|
monster|monsterwm ) exec monsterwm;;
|
|
|
|
notion ) exec notion;;
|
|
|
|
openbox ) exec openbox-session;;
|
|
|
|
unity ) exec unity;;
|
|
|
|
xfce|xfce4 ) exec startxfce4;;
|
|
|
|
xmonad ) exec xmonad;;
|
|
|
|
ratpoison ) exec ratpoison;;
|
2016-06-04 07:56:46 +02:00
|
|
|
stumpwm ) exec stumpwm;;
|
2016-07-15 10:38:27 +02:00
|
|
|
lxqt ) exec startlxqt;;
|
2016-04-21 22:38:34 +02:00
|
|
|
# No known session, try to run it as command
|
|
|
|
*) exec "$1";;
|
|
|
|
esac
|