summary refs log tree commit diff
path: root/.config/sway/config.d/input.conf
diff options
context:
space:
mode:
Diffstat (limited to '.config/sway/config.d/input.conf')
-rw-r--r--.config/sway/config.d/input.conf71
1 files changed, 71 insertions, 0 deletions
diff --git a/.config/sway/config.d/input.conf b/.config/sway/config.d/input.conf
new file mode 100644
index 0000000..67ee374
--- /dev/null
+++ b/.config/sway/config.d/input.conf
@@ -0,0 +1,71 @@
+# vim: ft=i3config fdm=marker fen
+
+seat * hide_cursor when-typing enable
+
+input type:keyboard {
+	# set via $HOME/.config/sway/env
+	# xkb_layout us
+	# xkb_variant mac
+	# xkb_options 'caps:hyper,lvl3:ralt_switch_multikey,eurosign:5'
+	# xkb_options 'caps:hyper,eurosign:5'
+
+	repeat_rate 70
+	repeat_delay 200
+}
+
+input type:pointer {
+	accel_profile adaptive
+	pointer_accel 0
+	natural_scroll enabled
+}
+
+input type:touchpad {
+	accel_profile adaptive
+	tap enabled
+	natural_scroll enabled
+	dwt enabled
+	#events disabled
+}
+
+set {
+	$keyboard 1:1:AT_Translated_Set_2_keyboard
+	$trackpad 1739:0:Synaptics_TM3289-021
+	$trackpoint 2:10:TPPS/2_Elan_TrackPoint
+
+	$planck 12951:50895:ZSA_Technology_Labs_Planck_EZ_Glow
+	$slimblade 1149:8257:Kensington_Kensington_Slimblade_Trackball
+	$mouse 1133:16500:Logitech_G305
+	$pen 10429:148:XP-PEN_STAR_G640_Pen
+	$penmouse 10429:148:XP-PEN_STAR_G640_Mouse
+	$virtpen 0:0:OpenTabletDriver_Virtual_Tablet
+}
+
+input $trackpoint {
+	pointer_accel 1
+}
+
+# $slimblade:
+# button layout:
+# ---------
+# | 2 | 8 |
+# ---------
+# | 1 | 3 |
+# ---------
+input $slimblade {
+	natural_scroll disabled
+	pointer_accel 1
+}
+bindsym --input-device=$slimblade --whole-window button8 seat - cursor press button3, seat - cursor release button3
+bindsym --input-device=$slimblade --whole-window button3 seat - cursor press button8, seat - cursor release button8
+
+# seat pen attach $pen
+# seat pen hide_cursor 10000
+# seat pen idle_inhibit tablet_tool
+# seat pen idle_wake tablet_tool
+
+# input $pen {
+#   accel_profile flat
+# }
+# input $penmouse {
+#   events disabled
+# }