From 632abea18c7e5e0d1a97cd77ab10060b5601af62 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Sat, 7 Mar 2020 09:44:38 +0100 Subject: [PATCH] Use generic keyboard and touchpad identifiers instead of specifying for every device --- programs/sway/default.nix | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/programs/sway/default.nix b/programs/sway/default.nix index f185ab36..dbcf878f 100644 --- a/programs/sway/default.nix +++ b/programs/sway/default.nix @@ -114,32 +114,13 @@ in # 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. - input "1:1:AT_Translated_Set_2_keyboard" { + input type:keyboard { xkb_layout "us" xkb_variant "altgr-intl" xkb_numlock enabled } - input "3141:30354:SONiX_USB_Keyboard" { - xkb_layout "us" - xkb_variant "altgr-intl" - xkb_numlock enabled - } - - input "1241:513:USB-HID_Keyboard" { - xkb_layout "us" - xkb_variant "altgr-intl" - xkb_numlock enabled - } - - input "1102:4639:DELL081C:00_044E:121F_Touchpad" { - drag enabled - dwt enabled - scroll_method two_finger - tap enabled - } - - input "2:7:SynPS/2_Synaptics_TouchPad" { + input type:touchpad { drag enabled dwt enabled scroll_method two_finger