Skip to content

Instantly share code, notes, and snippets.

@cornfeedhobo
Created February 28, 2022 17:49
Show Gist options
  • Save cornfeedhobo/77b37ba0996927e6a914d6baf5d81a0a to your computer and use it in GitHub Desktop.
Save cornfeedhobo/77b37ba0996927e6a914d6baf5d81a0a to your computer and use it in GitHub Desktop.
Framework Laptop Customizations
Section "InputClass"
Identifier "Framework Clickpad"
MatchProduct "Touchpad"
MatchDriver "synaptics"
# Enable clicking
Option "ClickPad" "true"
Option "EmulateMidButtonTime" "0
Option "ClickMethod" "clickfinger"
Option "ClickFinger1" "1"
Option "ClickFinger2" "3"
Option "ClickFinger3" "2"
# Disable tapping
Option "TapButton1" "0"
Option "TapButton2" "0"
Option "TapButton3" "0"
Option "MaxTapTime" "0"
Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
# Prevent Accidental Clicks
Option "PalmDetect" "1"
Option "PalmMinWidth" "5"
Option "PalmMinZ" "40"
# Calm the pad down while clicking
Option "VertHysteresis" "5"
Option "HorizHysteresis" "5"
# Natural (reverse) scrolling
Option "VertTwoFingerScroll" "1"
Option "VertScrollDelta" "-90"
Option "HorizTwoFingerScroll" "1"
Option "HorizScrollDelta" "-90"
# Smooth movement
Option "MinSpeed" "1"
Option "MaxSpeed" "2"
Option "AccelerationProfile" "2"
Option "ConstantDeceleration" "4"
#Option "PressureMotionMinZ" "15"
EndSection
<touchégg>
<application name="All">
<gesture type="SWIPE" fingers="4" direction="UP">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>qdbus-qt5 org.kde.kglobalaccel /component/kwin invokeShortcut 'Expose'</command>
<on>begin</on>
</action>
</gesture>
<gesture type="SWIPE" fingers="4" direction="DOWN">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>qdbus-qt5 org.kde.kglobalaccel /component/kwin invokeShortcut 'ExposeClass'</command>
<on>begin</on>
</action>
</gesture>
<gesture type="SWIPE" fingers="4" direction="RIGHT">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>qdbus-qt5 org.kde.kglobalaccel /component/kwin invokeShortcut 'Switch to Previous Desktop'</command>
<on>begin</on>
</action>
</gesture>
<gesture type="SWIPE" fingers="4" direction="LEFT">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>qdbus-qt5 org.kde.kglobalaccel /component/kwin invokeShortcut 'Switch to Next Desktop'</command>
<on>begin</on>
</action>
</gesture>
<gesture type="SWIPE" fingers="3" direction="RIGHT">
<action type="SEND_KEYS">
<repeat>false</repeat>
<keys>XF86Back</keys>
<on>begin</on>
</action>
</gesture>
<gesture type="SWIPE" fingers="3" direction="LEFT">
<action type="SEND_KEYS">
<repeat>false</repeat>
<keys>XF86Forward</keys>
<on>begin</on>
</action>
</gesture>
</application>
</touchégg>
@iamef
Copy link

iamef commented Apr 16, 2022

Have you found that the touchpad would sometimes randomly not work? I'm switching to libinput because of that even though synaptics has more settings, sometimes

@cornfeedhobo
Copy link
Author

@iamef only during scrolling. kde is adding native gesture support through libinput, so I'm just waiting it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment