.xinitrc 666 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. ## WARNING: If started from TTY on a multi-seat, the user must run 'startx &
  3. ## vlock' to ensure the X locker cannot be bypassed.
  4. ## Run site init scripts. Usually not necessary.
  5. if [ -d /etc/X11/xinit/xinitrc.d ] ; then
  6. for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  7. [ -x "$f" ] && . "$f"
  8. done
  9. unset f
  10. fi
  11. ## Source environment config.
  12. [ -f ~/.xprofile ] && . ~/.xprofile
  13. if [ $# -eq 0 ]; then
  14. ## With no argument, launch custom session.
  15. conky | dzen2 -p -dock -ta l -fn "DejaVu Sans Mono" &
  16. ## `exwm-enable' has to be called before the frame is spawned.
  17. emacs --daemon --eval "(require 'exwm)" -f exwm-enable
  18. exec emacsclient -c
  19. fi
  20. exec "$@"