RitwickVerma / Gesture-Manager-X

Extended GUI for interacting with libinput-gestures
GNU General Public License v3.0
5 stars 0 forks source link

Allow non-gesture settings #2

Open haarp opened 3 years ago

haarp commented 3 years ago

libinput-gestures also offers some settings for its config:

###############################################################################
# This application normally determines your touchpad device
# automatically. Some users may have multiple touchpads but by default
# we use only the first one found. However, you can choose to specify
# the explicit device name to use. Run "libinput list-devices" to work
# out the name of your device (from the "Device:" field). Then add a
# device line specifying that name, e.g:
#
# device DLL0665:01 06CB:76AD Touchpad
#
# If the device name starts with a '/' then it is instead considered as
# the explicit device path although since device paths can change
# through reboots this is best to be a symlink. E.g. instead of specifying
# /dev/input/event12, use the corresponding full path link under
# /dev/input/by-path/ or /dev/input/by-id/.
#
# You can choose to use ALL touchpad devices by setting the device name
# to "all". E.g. Do this if you have multiple touchpads which you want
# to use in parallel. This reduces performance slightly so only set this
# if you have to.
#
# device all

###############################################################################
# You can set a minimum travel distance threshold before swipe gestures
# are actioned using the swipe_threshold configuration command.
# Specify this value in dots. The default is 0.
# E.g. set it to 100 dots with "swipe_threshold 100".
# swipe_threshold 0

###############################################################################
# You can set a timeout on gestures from start to end. The default is
# the value commented below. It can be any value in float secs >= 0.
# 0 = no timeout. E.g. set it to 2 secs with "timeout 2".
# timeout 1.5

It would be cool to handle those aswell! :)

Thanks!

RitwickVerma commented 3 years ago

I've added swipe threshold and timeout in cf56062f23d76808a1e4ff316c2f84d3c465da5a. Will add device selection soon.

haarp commented 3 years ago

Very nice!

btw, I've made an ebuild for Gentoo for this, it can be found in my haarp overlay.