From d7b88f06c1a9623caf5d01774c4f2b12e460fe58 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 6 Sep 2019 23:19:59 -0400 Subject: [PATCH] emacs: exwm: add bindings for switching, swapping, resizing windows --- .emacs.d/init.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 37b2ecd..93dd563 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -618,6 +618,18 @@ around if needed." (interactive) (start-process-shell-command "rofi-pass" nil "rofi-pass"))) + ([?\s-h] . windmove-left) + ([?\s-j] . windmove-down) + ([?\s-k] . windmove-up) + ([?\s-l] . windmove-right) + ([?\s-H] . windmove-swap-states-left) + ([?\s-J] . windmove-swap-states-down) + ([?\s-K] . windmove-swap-states-up) + ([?\s-L] . windmove-swap-states-right) + ([?\M-\s-h] . shrink-window-horizontally) + ([?\M-\s-l] . enlarge-window-horizontally) + ([?\M-\s-k] . shrink-window) + ([?\M-\s-j] . enlarge-window) ([?\s-\[] . (lambda () (interactive) (exwm-workspace-switch-create -- 2.20.1