diff --git a/.config/sway/config.d/keyboard.conf b/.config/sway/config.d/keyboard.conf new file mode 100644 index 0000000..80da639 --- /dev/null +++ b/.config/sway/config.d/keyboard.conf @@ -0,0 +1,21 @@ +# input "*" equals all input methods +# to specify settings for a specific input method, use its identifier instead. +# query the connected input methods: `swaymsg -t get_inputs` + +input * { + # toggles through configured layouts via caps-lock + # query the available layout toggles: `localectl list-x11-keymap-options | grep grp:` + # query the available led indicators: `localectl list-x11-keymap-options | grep grp_led` + # enables caps-lock led if not the first layout selected + # regular caps-lock behavior can be reached using shift+caps-lock + xkb_options grp:caps_toggle,grp_led:caps,ctrl:nocaps + pointer_accel 0.3 + + + # query the available layouts: `localectl list-x11-keymap-layouts` + xkb_layout "us,de" + + # query the available variants for a given layout: `localectl list-x11-keymap-variants de` + # list in the same order as the layouts - empty equals the default layout + xkb_variant "," +}