From 7c4a070f3337c9553b4f8918189ba765afb83070 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 27 Mar 2019 19:12:19 +0100 Subject: [PATCH] .xinitrc: Load EXWM from there --- .xinitrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.xinitrc b/.xinitrc index 4a762235..1da22e23 100644 --- a/.xinitrc +++ b/.xinitrc @@ -14,12 +14,12 @@ fi ## Source environment config. [ -f ~/.xprofile ] && . ~/.xprofile -## Launch session -if [ $# -eq 1 ] && command -v $1 >/dev/null 2>&1; then - exec $1 -else +if [ $# -eq 0 ]; then + ## With no argument, launch custom session. conky | dzen2 -p -dock -ta l -fn "DejaVu Sans Mono" & ## `exwm-enable' has to be called before the frame is spawned. - emacs --daemon -f exwm-enable + emacs --daemon --eval "(require 'exwm)" -f exwm-enable exec emacsclient -c fi + +exec "$@"