`sxhkd -m -1` and `sxhkd -m 1` don't respect xmodmap
Craftidore opened this issue · 0 comments
Expected behavior
When running sxhkd
, the hotkeys should ignore changes to keyboard layout via xmodmap. This works correctly.
When running sxhkd -m -1
, the hotkeys should pay attention to the layout set via xmodmap, according to this issue. This doesn't work.
Actual behavior
My .Xmodmap
file is as follows:
remove Lock = Caps_Lock
remove Control = Control_L
keysym Caps_Lock = Control_L
keysym Control_L = Alt_L
add Lock = Caps_Lock
add Control = Control_L
!
remove Mod4 = Alt_L
keysym Escape = Alt_L
keysym Alt_L = Escape
add Mod4 = Alt_L
This appears to change these key's behavior on all other apps.
Sxhkd ignores these changes (as it should).
However, running pkill sxhkd
then sxhkd -m -1 &
doesn't fix the issue.
I've been testing with the following line in my sxhkd:
alt + c
echo Hello > log
When running sxhkd
the actual alt key (pre-xmodmap) is respected, but when running sxhkd -m -1
neither the actual alt key (pre xmodmap) nor the new alt key (Control_L) are recognized.
I have also tested with sxhkd -m 1
yields the same behavior.
Device specs
OS: EndeavourOS Linux x86_64
Host: Surface Laptop 3 124I:00036T:000M:0300000D:0B:07F:1C:05P:48S:01E:0Y:0K:0U:02
Kernel: 5.18.3-arch1-1
Shell: bash 5.1.16
WM: bspwm
Terminal: kitty
CPU: Intel i5-1035G7 (8) @ 3.700GHz
GPU: Intel Iris Plus Graphics G7
Sxhkd version: 0.6.2