From 96e46794a82bf4b2a3edce4502f09f1c4ec85678 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 2 Aug 2019 14:48:07 -0400 Subject: mouse: Add acceleration profiles Currently libinput supports Adaptive and Flat acceleration profiles. We can use these to change mouse behavior. Synaptic touchpads are not supported through libinput, so they will not be affected by this change. The Default acceleration profile reads the value from the libinput defaults and sets them as the current profile. Usually ends up being Adaptive. --- data/Makefile.am | 1 + data/org.mate.peripherals-mouse.gschema.xml.in | 59 +++++++++++++++++++++++ data/org.mate.peripherals-touchpad.gschema.xml.in | 10 ++++ 3 files changed, 70 insertions(+) create mode 100644 data/org.mate.peripherals-mouse.gschema.xml.in (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index 5f40975..33764fd 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -3,6 +3,7 @@ NULL = msd_gschemas_in = \ org.mate.applications-at.gschema.xml.in \ org.mate.font-rendering.gschema.xml.in \ + org.mate.peripherals-mouse.gschema.xml.in \ org.mate.peripherals-smartcard.gschema.xml.in \ org.mate.peripherals-touchpad.gschema.xml.in \ org.mate.SettingsDaemon.plugins.a11y-keyboard.gschema.xml.in \ diff --git a/data/org.mate.peripherals-mouse.gschema.xml.in b/data/org.mate.peripherals-mouse.gschema.xml.in new file mode 100644 index 0000000..87b4bc2 --- /dev/null +++ b/data/org.mate.peripherals-mouse.gschema.xml.in @@ -0,0 +1,59 @@ + + + + + + + + + false + Mouse button orientation + Swap left and right mouse buttons for left-handed mice. + + + -1 + Motion Acceleration + Acceleration multiplier for mouse motion. A value of -1 is the system default. + + + -1 + Motion Threshold + Distance in pixels the pointer must move before accelerated mouse motion is activated. A value of -1 is the system default. + + + 'default' + Acceleration profile + Acceleration profile used for connected mice. The acceleration profile can be set to either default ('default') which uses the default acceleration profile for each device, flat ('flat'), which accelerates by a device specific constant factor derived from the configured pointer speed, or adaptive ('adaptive') which adapts the acceleration depending on the mouse movement. If a mouse doesn't support the configured profile, 'default' will be used. + + + 8 + Drag Threshold + Distance before a drag is started. + + + 400 + Double Click Time + Length of a double click. + + + true + Middle button emulation + Enables middle mouse button emulation through simultaneous left and right button click. + + + false + Locate Pointer + Highlights the current location of the pointer when the Control key is pressed and released. + + + '' + Cursor theme + Cursor theme name. + + + 24 + Cursor size + Size of the cursor referenced by cursor_theme. + + + diff --git a/data/org.mate.peripherals-touchpad.gschema.xml.in b/data/org.mate.peripherals-touchpad.gschema.xml.in index 90b83c8..2755174 100644 --- a/data/org.mate.peripherals-touchpad.gschema.xml.in +++ b/data/org.mate.peripherals-touchpad.gschema.xml.in @@ -4,6 +4,11 @@ + + + + + false @@ -85,5 +90,10 @@ Motion Threshold Distance in pixels the pointer must move before accelerated touchpad motion is activated. A value of -1 is the system default. + + 'default' + Acceleration profile + Acceleration profile used for touchpad. The acceleration profile can be set to either default ('default') which uses the default acceleration profile for each device, flat ('flat'), which accelerates by a device specific constant factor derived from the configured pointer speed, or adaptive ('adaptive') which adapts the acceleration depending on the touchpad movement. If a touchpad doesn't support the configured profile, 'default' will be used. + -- cgit v1.2.1