diff --git a/home/.config/X11/xinitrc b/home/.config/X11/xinitrc index 8523c57..694774a 100644 --- a/home/.config/X11/xinitrc +++ b/home/.config/X11/xinitrc @@ -28,6 +28,17 @@ session=${1:-spectrwm} case $session in bspwm ) exec bspwm ;; spectrwm ) exec spectrwm -c ~/.config/spectrwm/spectrwm-nord.conf ;; - exwm ) exec dbus-run-session -- emacs -mm --debug-init -l ~/.config/doom/exwm.el ;; + exwm ) + # In case no elogind + if [ -z "${XDG_RUNTIME_DIR}" ] + then + export XDG_RUNTIME_DIR="/tmp/$(mktemp -d $(id -u ${USER})-runtime-XXXXXX)" + if [ ! -d "${XDG_RUNTIME_DIR}" ] + then + mkdir "${XDG_RUNTIME_DIR}" + chmod 0700 "${XDG_RUNTIME_DIR}" + fi + fi + exec dbus-run-session emacs -mm --debug-init -l ~/.config/doom/exwm.el > "${XDG_RUNTIME_DIR}/exwm-$(date "+%Y-%m-%d").log" 2>&1 ;; * ) exec "$1" ;; esac diff --git a/home/.config/doom/exwm.el b/home/.config/doom/exwm.el index d07eae7..8ac16a0 100644 --- a/home/.config/doom/exwm.el +++ b/home/.config/doom/exwm.el @@ -229,7 +229,7 @@ :leader "e 1" #'mpc-toggle-single :leader "e r" #'mpc-toggle-repeat :leader "e z" #'mpc-toggle-shuffle - :leader "e l" #'mpc-playlist) + :leader "e l" #'mpc-playlist-add) ;; EMMS ;; (use-package! emms