summary refs log tree commit diff
path: root/.config/sway/input.conf
blob: 4246663d0f23f7dc622993f3f3285923d5f163ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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

  #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
# }