diff options
-rw-r--r-- | exwm.org | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -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) |