From 431cbd46a4c2a3a1f468f2aa476af35bacf9f0c3 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 1 Jun 2019 21:58:56 -0400 Subject: [PATCH] Refactored the input configuration files into individual config This is not the keybinds but configuration to the drivers for the keyboard and trackpad. --- sway/config | 18 +----------------- sway/input | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 sway/input 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