emacs: exwm: add bindings for switching, swapping, resizing windows
authorAmin Bandali <bandali@gnu.org>
Sat, 7 Sep 2019 03:19:59 +0000 (23:19 -0400)
committerAmin Bandali <bandali@gnu.org>
Sat, 7 Sep 2019 03:19:59 +0000 (23:19 -0400)
.emacs.d/init.el

index 37b2ecd..93dd563 100644 (file)
@@ -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