diff --git a/sway/config b/sway/config index c44d8a7..ca855e2 100644 --- a/sway/config +++ b/sway/config @@ -47,23 +47,6 @@ exec swayidle -w \ # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. -### Input configuration -# -# Example configuration: -# -input "2:7:SynPS/2_Synaptics_TouchPad" { - dwt enabled - click_method clickfinger - natural_scroll enabled - middle_emulation enabled -} - -input "1:1:AT_Translated_Set_2_keyboard" { - xkb_options ctrl:nocaps -} -# -# You can get the names of your inputs by running: swaymsg -t get_inputs -# Read `man 5 sway-input` for more information about this section. ################################################################################ # UI tweaks @@ -264,3 +247,4 @@ bar { #include /etc/sway/config.d/* include autostart +include input diff --git a/sway/input b/sway/input new file mode 100644 index 0000000..ad784bd --- /dev/null +++ b/sway/input @@ -0,0 +1,17 @@ +### Input configuration +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# Read `man 5 sway-input` for more information about this section. + +# Beter touchpad support +input "2:7:SynPS/2_Synaptics_TouchPad" { + dwt enabled + click_method clickfinger + natural_scroll enabled + middle_emulation enabled +} + +# bind caps to ctrl +input "1:1:AT_Translated_Set_2_keyboard" { + xkb_options ctrl:nocaps +} \ No newline at end of file