[rc/sway] per host input config
authorAmin Bandali <bandali@gnu.org>
Sat, 20 Oct 2018 19:55:06 +0000 (15:55 -0400)
committerAmin Bandali <bandali@gnu.org>
Sat, 20 Oct 2018 19:56:03 +0000 (15:56 -0400)
rc.org

diff --git a/rc.org b/rc.org
index bdc4947..7e5b2a1 100644 (file)
--- a/rc.org
+++ b/rc.org
@@ -3761,6 +3761,8 @@ insert_pass="Alt+n"
 #+end_src
 
 ** sway
+
+*** main
 :PROPERTIES:
 :header-args+: :tangle ~/.config/sway/config
 :END:
@@ -3803,31 +3805,6 @@ exec swayidle \
       resume   'swaymsg "output * dpms on"'  \
    before-sleep swaylock
 
-### Input configuration
-
-input "1739:31251:DLL07BE:01_06CB:7A13_Touchpad" {
-    dwt enabled
-    tap enabled
-    natural_scroll enabled
-    middle_emulation enabled
-    click_method clickfinger
-}
-
-input "2:7:SynPS/2_Synaptics_TouchPad" {
-    events disabled
-    dwt enabled
-    tap enabled
-    natural_scroll enabled
-    click_method clickfinger
-}
-
-input "1:1:AT_Translated_Set_2_keyboard" {
-    repeat_delay 200
-    repeat_rate 45
-    xkb_layout us_ab,ir
-    xkb_options ctrl:nocaps,altwin:swap_alt_win,grp:shifts_toggle
-}
-
 
 ### Key bindings
 #
@@ -4033,8 +4010,53 @@ font pango: DejaVu Sans Mono 9
 # font pango: Liberation Mono 9
 
 include /etc/sway/config.d/*
+include ~/.config/sway/`hostname`
+
+#+end_src
+
+*** langa
+:PROPERTIES:
+:header-args+: :tangle ~/.config/sway/langa
+:END:
+
+#+begin_src conf
+input "2:7:SynPS/2_Synaptics_TouchPad" {
+    events disabled
+    dwt enabled
+    tap enabled
+    natural_scroll enabled
+    click_method clickfinger
+}
+
+input "1:1:AT_Translated_Set_2_keyboard" {
+    repeat_delay 200
+    repeat_rate 45
+    xkb_layout us_ab,ir
+    xkb_options ctrl:nocaps,altwin:swap_alt_win,grp:shifts_toggle
+}
 #+end_src
 
+*** shemshak
+:PROPERTIES:
+:header-args+: :tangle ~/.config/sway/shemshak
+:END:
+
+#+begin_src conf
+input "1739:31251:DLL07BE:01_06CB:7A13_Touchpad" {
+    dwt enabled
+    tap enabled
+    natural_scroll enabled
+    middle_emulation enabled
+    click_method clickfinger
+}
+
+input "1:1:AT_Translated_Set_2_keyboard" {
+    repeat_delay 200
+    repeat_rate 45
+    xkb_layout us,ir
+    xkb_options ctrl:nocaps,altwin:swap_alt_win,ctrl:rctrl_ralt,grp:shifts_toggle
+}
+#+end_src
 ** swaylock
 :PROPERTIES:
 :header-args+: :tangle ~/.config/swaylock/config