dotfiles

shared miscellaneous configuration files between my systems
git clone git://git.shmage.xyz/dotfiles.git
Log | Files | Refs

commit c448e47047126d660f1deb843050a71121a8779f
parent d214b02d5f8267230e52842747746e01ac56acdc
Author: Ian Ressa <ian@shmage.xyz>
Date:   Sat,  1 Oct 2022 01:30:35 -0400

Start emacs --daemon when X starts. Make default emacs invocation a connection to the daemon

Diffstat:
M.stumpwm.d/binds.lisp | 5+++++
M.xinitrc | 1+
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/.stumpwm.d/binds.lisp b/.stumpwm.d/binds.lisp @@ -4,6 +4,9 @@ (set-prefix-key (kbd "C-t")) +(defcommand emacs-connect-or-start () () + (run-shell-command "emacsclient --no-wait --create-frame || (emacs --daemon && emacsclient --no-wait --create-frame)")) + (defcommand toggle-float () () (if (typep (current-window) 'float-window) (unfloat-this) (float-this))) @@ -52,6 +55,8 @@ (undefine-key *root-map* (kbd "C-c")) ;;;; Root map +(define-key *root-map* (kbd "C-e") "emacs") +(define-key *root-map* (kbd "e") "emacs-connect-or-start") (define-key *root-map* (kbd "c") "exec alacritty") (define-key *root-map* (kbd "C-TAB") "exec rofi -show run") (define-key *root-map* (kbd "C-c") "terminal-raise") diff --git a/.xinitrc b/.xinitrc @@ -9,6 +9,7 @@ picom -bf -D 2 --vsync --backend glx & start-pulseaudio-x11 & feh --bg-fill ~/.wallpapers/* dunst -config ~/.config/dunst/dunstrc & +emacs --daemon & sh -c "sleep 0.5; xsetroot -cursor_name left_ptr" & exec dbus-launch --exit-with-session stumpwm