.xinitrc 650 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. ## Launch session
  14. if [ $# -eq 1 ] && command -v $1 >/dev/null 2>&1; then
  15. exec $1
  16. else
  17. conky | dzen2 -p -dock -ta l -fn "DejaVu Sans Mono" &
  18. ## `exwm-enable' has to be called before the frame is spawned.
  19. emacs --daemon -f exwm-enable
  20. exec emacsclient -c
  21. fi