ambevar-dotfiles/.xinitrc

26 lines
666 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
## WARNING: If started from TTY on a multi-seat, the user must run 'startx &
## vlock' to ensure the X locker cannot be bypassed.
## 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
## Source environment config.
[ -f ~/.xprofile ] && . ~/.xprofile
2019-03-27 19:12:19 +01:00
if [ $# -eq 0 ]; then
## With no argument, launch custom session.
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 "$@"