Wayland(gnome)에서 Capslock 키를 Escape로 다시 매핑할 수 없습니다. 나는 Gnome Tweaks를 사용해 보았고
gsettings set org.gnome.desktop.input-sources xkb-options "['caps:escape']"
어느 쪽도 Capslock 키가 Esc 키를 누르라는 신호를 보내지 않습니다. Xorg에서는 이 작업을 수행할 수 있지만 Wayland에서는 작동하지 않습니다.
답변1
당신은 그것을 사용할 수 있습니다dconf:
$ dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:swapescape']"
답변2
gsettings
저에게 효과적입니다(debian Bullseye, gnome + wayland). 어쩌면 값을 다르게 이스케이프해야 할 수도 있습니다.
gsettings set org.gnome.desktop.input-sources xkb-options \[\'caps:escape\'\]
그러나 이러한 설정은 잘 문서화되어 있지 않습니다. gsettings를 사용하는 n00b로서 순진 range
하게 xkb-options
.
---------- me@my-desktop:~ ----------
$ gsettings range org.gnome.desktop.input-sources xkb-options
type as <-- not informative
---------- me@my-desktop:~ ----------
$ gsettings describe org.gnome.desktop.input-sources xkb-options
List of XKB options. Each option is an XKB option string as defined by xkeyboard-config’s rules files.
귀중한 단서!
---------- me@my-desktop:~ ----------
$ more /usr/share/X11/xkb/rules/evdev.lst | grep caps:
caps:internal Caps Lock uses internal capitalization; Shift "pauses" Caps Lock
caps:internal_nocancel Caps Lock uses internal capitalization; Shift does not affect Caps Lock
caps:shift Caps Lock acts as Shift with locking; Shift "pauses" Caps Lock
caps:shift_nocancel Caps Lock acts as Shift with locking; Shift does not affect Caps Lock
caps:capslock Caps Lock toggles normal capitalization of alphabetic characters
caps:shiftlock Caps Lock toggles ShiftLock (affects all keys)
caps:swapescape Swap ESC and Caps Lock
caps:escape Make Caps Lock an additional Esc
caps:escape_shifted_capslock Make unmodified Caps Lock an additional Esc, but Shift + Caps Lock behaves like regular Caps Lock
caps:backspace Make Caps Lock an additional Backspace
caps:super Make Caps Lock an additional Super
caps:hyper Make Caps Lock an additional Hyper
caps:menu Make Caps Lock an additional Menu key
caps:numlock Make Caps Lock an additional Num Lock
caps:ctrl_modifier Caps Lock is also a Ctrl
caps:none Caps Lock is disabled