Advertisement
clairec

xinitrc

Sep 4th, 2016
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. #
  3. # ~/.xinitrc
  4. #
  5. # Executed by startx (run your window manager from here)
  6.  
  7. if [ -d /etc/X11/xinit/xinitrc.d ]; then
  8.   for f in /etc/X11/xinit/xinitrc.d/*; do
  9.     [ -x "$f" ] && . "$f"
  10.   done
  11.   unset f
  12. fi
  13.  
  14. export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
  15.  
  16. DEFAULT_SESSION='i3 --shmlog-size 0'
  17.  
  18.  
  19. case $1 in
  20.   awesome       ) exec dbus-launch awesome ;;
  21.   bspwm         ) exec dbus-launch bspwm-session ;;
  22.   budgie        ) exec dbus-launch budgie-desktop ;;
  23.   cinnamon      ) exec dbus-launch cinnamon-session ;;
  24.   deepin        ) exec dbus-launch startdde ;;
  25.   enlightenment ) exec dbus-launch enlightenment_start ;;
  26.   fluxbox       ) exec dbus-launch startfluxbox ;;
  27.   gnome         ) exec dbus-launch gnome-session ;;
  28.   i3|i3wm       ) exec dbus-launch i3 --shmlog-size 0 ;;
  29.   jwm           ) exec dbus-launch jwm ;;
  30.   kde           ) exec dbus-launch startkde ;;
  31.   lxde          ) exec dbus-launch startlxde ;;
  32.   lxqt          ) exec dbus-launch lxqt-session ;;
  33.   mate          ) exec dbus-launch mate-session ;;
  34.   xfce          ) exec dbus-launch xfce4-session ;;
  35.  
  36.   *             ) exec dbus-launch $DEFAULT_SESSION ;;
  37. esac
  38.  
  39. redshift &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement