summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-09-06 13:22:45 -0400
committerAmin Bandali <bandali@gnu.org>2019-09-06 13:45:52 -0400
commit305e08d65aab8b56783d8190f041cfc219b9cc6f (patch)
tree4a772c4db185cf0969be3ebb0749979374fd87dd /.emacs.d
parentb0b341898d6649882e3d9f9dbdc5af1937168af8 (diff)
downloadconfigs-305e08d65aab8b56783d8190f041cfc219b9cc6f.tar.gz
configs-305e08d65aab8b56783d8190f041cfc219b9cc6f.tar.xz
configs-305e08d65aab8b56783d8190f041cfc219b9cc6f.zip
exwm: add local simulation keys for urxvt and abrowser
note: it seems that some composite keys (e.g. C-S-w) don’t work when pressing the caps that was remapped to ctrl using setxkbmap or xmodmap
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index d6c94f8..f7afe3c 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -711,6 +711,23 @@ around if needed."
;; escape
([?\C-g] . [escape]))))
+(use-feature exwm-manage
+ :demand
+ :after exwm
+ :hook
+ (exwm-manage-finish . (lambda ()
+ (when exwm-class-name
+ (cond
+ ((string= exwm-class-name "URxvt")
+ (exwm-input-set-local-simulation-keys
+ nil))
+ ((string= exwm-class-name "Abrowser")
+ (exwm-input-set-local-simulation-keys
+ `(,@exwm-input-simulation-keys
+ ([?\C-\S-d] . [?\C-d])
+ ([?\C-\S-w] . [?\C-w])
+ ([?\C-\S-q] . [?\C-q])))))))))
+
(use-feature exwm-randr
:demand
:after exwm