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
;; escape
([?\C-g] . [escape]))))
;; 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
(use-feature exwm-randr
:demand
:after exwm