summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-02-11 06:40:02 +0000
committerjao <jao@gnu.org>2021-02-11 06:40:18 +0000
commit3d0e86d41b0239ddaa9afc79893fbdc4edbcfc5d (patch)
tree4be042c082c81f422f25435cef0148efc9891e55
parentde666a4046f0d8078c488c45fc39e8a5c259bba9 (diff)
downloadelibs-3d0e86d41b0239ddaa9afc79893fbdc4edbcfc5d.tar.gz
elibs-3d0e86d41b0239ddaa9afc79893fbdc4edbcfc5d.tar.bz2
switch-window also in exwm kbs
-rw-r--r--exwm.org16
1 files changed, 3 insertions, 13 deletions
diff --git a/exwm.org b/exwm.org
index 2707aa8..cc08239 100644
--- a/exwm.org
+++ b/exwm.org
@@ -454,24 +454,14 @@
#+end_src
* Keybindings
#+BEGIN_SRC emacs-lisp
- (defun jao-exwm-x-kbs ()
- (when (and exwm-class-name (string= exwm-class-name "XTerm"))
- (exwm-input-set-local-simulation-keys '(([?\C-c ?\C-c] . [?\C-c])
- ([?\C-x ?\C-c] . [?\C-c])))))
-
- ;; (add-hook 'exwm-manage-finish-hook #'jao-exwm-x-kbs)
-
- ;; To add a key binding only available in line-mode, simply define it in
- ;; `exwm-mode-map'. The following example shortens 'C-c q' to 'C-q'.
(define-key exwm-mode-map [?\C-q] #'exwm-input-send-next-key)
- (define-key exwm-mode-map [?\s-k] #'exwm-input-release-keyboard)
(define-key exwm-mode-map [?\s-f] #'jao-hydra-float/body)
(define-key exwm-mode-map [?\s-m] #'jao-hydra-media/body)
(define-key exwm-mode-map [?\s-s] #'jao-hydra-spotify/body)
(define-key exwm-mode-map [?\s-w] #'jao-hydra-exwm/body)
(define-key exwm-mode-map [?\s-p] #'jao-exwm-pdf-goto-org)
(define-key exwm-mode-map [?\s-P] #'jao-exwm-pdf-goto-org*)
- ;; (define-key exwm-mode-map [?\s-w] #'jao-hydra-exwm/body)
+
(setq
exwm-input-global-keys
'(([?\s-0] . jao-afio--goto-scratch)
@@ -485,8 +475,8 @@
([?\s-c] . jao-hydra-chats/body)
([?\s-t] . jao-vterm-here-toggle)
([?\s-n] . jao-hydra-ednc/body)
- ([?\s-O] . ace-swap-window)
- ([?\s-o] . ace-window)
+ ([?\s-O] . switch-window-then-swap-buffer)
+ ([?\s-o] . switch-window)
([?\s-x] . jao-hydra-exwm-misc/body)
([?\s-z] . jao-hydra-sleep/body)
([XF86AudioMute] . jao-mixer-master-toogle)