2012-06-15 16:54:02 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-10-13 11:51:37 +02:00
|
|
|
## WARNING: If started from TTY on a multi-seat, the user must run 'startx &
|
|
|
|
## vlock' to ensure the X locker cannot be bypassed.
|
|
|
|
|
2016-06-22 11:16:48 +02:00
|
|
|
## Run site init scripts. Usually not necessary.
|
|
|
|
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
|
|
|
|
|
2013-05-24 17:27:56 +02:00
|
|
|
## Source environment config.
|
|
|
|
[ -f ~/.xprofile ] && . ~/.xprofile
|
2013-04-27 16:35:45 +02:00
|
|
|
|
2019-03-27 19:12:19 +01:00
|
|
|
if [ $# -eq 0 ]; then
|
|
|
|
## With no argument, launch custom session.
|
2017-10-08 20:21:26 +02:00
|
|
|
conky | dzen2 -p -dock -ta l -fn "DejaVu Sans Mono" &
|
2017-07-27 14:45:30 +02:00
|
|
|
## `exwm-enable' has to be called before the frame is spawned.
|
2019-03-27 19:12:19 +01:00
|
|
|
emacs --daemon --eval "(require 'exwm)" -f exwm-enable
|
2017-07-27 14:45:30 +02:00
|
|
|
exec emacsclient -c
|
2013-10-12 16:01:11 +02:00
|
|
|
fi
|
2019-03-27 19:12:19 +01:00
|
|
|
|
|
|
|
exec "$@"
|