dotfiles/.xinitrc

46 lines
1.3 KiB
Text
Raw Normal View History

2018-06-02 00:13:25 +02:00
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export XDG_CURRENT_DESKTOP="i3"
DEFAULT_SESSION='i3 --shmlog-size 0'
/usr/bin/numlockx on
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
[[ -f ~/.fehbg ]] && ~/.fehbg
2018-11-30 22:00:19 +01:00
[[ -f ~/.screenlayout/home.sh ]] && ~/.screenlayout/home.sh
2018-06-02 00:13:25 +02:00
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
case $1 in
awesome ) exec dbus-launch awesome ;;
bspwm ) exec dbus-launch bspwm-session ;;
budgie ) exec dbus-launch budgie-desktop ;;
cinnamon ) exec dbus-launch cinnamon-session ;;
deepin ) exec dbus-launch startdde ;;
enlightenment ) exec dbus-launch enlightenment_start ;;
fluxbox ) exec dbus-launch startfluxbox ;;
gnome ) exec dbus-launch gnome-session ;;
i3|i3wm ) exec dbus-launch i3 --shmlog-size 0 ;;
jwm ) exec dbus-launch jwm ;;
kde ) exec dbus-launch startkde ;;
lxde ) exec dbus-launch startlxde ;;
lxqt ) exec dbus-launch lxqt-session ;;
mate ) exec dbus-launch mate-session ;;
xfce ) exec dbus-launch xfce4-session ;;
* ) exec dbus-launch $DEFAULT_SESSION ;;
esac