commit: 6c7779a38f60cd58c66ad9e0da6abffbedeb590c
parent 22117929492762d4dc795e3c5d9c2c80feda0ea5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 1 Dec 2020 23:08:59 +0100
sway: Use input blocks when possible
Diffstat:
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/.config/sway/config b/.config/sway/config
@@ -46,8 +46,21 @@ bindsym $mod+Shift+w move window to output left
bindsym $mod+e focus output right
bindsym $mod+Shift+e move window to output right
-input 1149:4130:Kensington_USB_Orbit middle_emulation enabled
-input 1149:4130:Kensington_USB_Orbit scroll_button button2
+input "2:10:TPPS/2_Elan_TrackPoint" {
+ scroll_factor 2
+ pointer_accel 0.5
+}
+
+input "2:7:SynPS/2_Synaptics_TouchPad" {
+ accel_profile flat
+ natural_scroll enabled
+ scroll_factor 2
+}
+
+input "1149:4130:Kensington_USB_Orbit" {
+ middle_emulation enabled
+ scroll_button button2
+}
# Fucks with games
input * dwt disabled
@@ -145,12 +158,6 @@ exec_always swaymsg 'input * xkb_variant "'${XKB_DEFAULT_VARIANT}'"'
exec_always swaymsg 'input * xkb_options "'${XKB_DEFAULT_OPTIONS}'"'
bindsym Print exec 'slurp | grim -g - /tmp/screen.png'
-exec_always input 2:10:TPPS/2_Elan_TrackPoint scroll_factor 2
-exec_always input 2:10:TPPS/2_Elan_TrackPoint pointer_accel 0.5
-exec_always input 2:7:SynPS/2_Synaptics_TouchPad accel_profile flat
-exec_always input 2:7:SynPS/2_Synaptics_TouchPad natural_scroll enabled
-exec_always input 2:7:SynPS/2_Synaptics_TouchPad scroll_factor 2
-
exec_always swaymsg 'output * bg "'${MY_WALLPAPER}'" "'${MY_WALLPAPER_MODE}'"'
#bindsym $mod+b bar hidden_state toggle