ambevar-dotfiles/.xinitrc

26 lines
650 B
Plaintext
Raw 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
## Launch session
2014-04-21 19:59:45 +02:00
if [ $# -eq 1 ] && command -v $1 >/dev/null 2>&1; then
exec $1
2013-10-12 16:01:11 +02:00
else
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.
emacs --daemon -f exwm-enable
exec emacsclient -c
2013-10-12 16:01:11 +02:00
fi