From 4fe8dfe8fe139df2d8eb2907a7e361a58e20e118 Mon Sep 17 00:00:00 2001 From: Dallas Strouse Date: Tue, 30 Sep 2025 21:35:23 -0500 Subject: [PATCH] schemas: Custom acceleration profiles --- headers/gdesktop-enums.h | 14 ++-- ...g.gnome.desktop.peripherals.gschema.xml.in | 81 ++++++++++++++++++- 2 files changed, 85 insertions(+), 10 deletions(-) diff --git a/headers/gdesktop-enums.h b/headers/gdesktop-enums.h index fa5cbfa..8af0fd8 100644 --- a/headers/gdesktop-enums.h +++ b/headers/gdesktop-enums.h @@ -155,11 +155,11 @@ typedef enum typedef enum { - G_DESKTOP_LOCATION_ACCURACY_LEVEL_COUNTRY, - G_DESKTOP_LOCATION_ACCURACY_LEVEL_CITY, - G_DESKTOP_LOCATION_ACCURACY_LEVEL_NEIGHBORHOOD, - G_DESKTOP_LOCATION_ACCURACY_LEVEL_STREET, - G_DESKTOP_LOCATION_ACCURACY_LEVEL_EXACT + G_DESKTOP_LOCATION_ACCURACY_LEVEL_COUNTRY, + G_DESKTOP_LOCATION_ACCURACY_LEVEL_CITY, + G_DESKTOP_LOCATION_ACCURACY_LEVEL_NEIGHBORHOOD, + G_DESKTOP_LOCATION_ACCURACY_LEVEL_STREET, + G_DESKTOP_LOCATION_ACCURACY_LEVEL_EXACT } GDesktopLocationAccuracyLevel; typedef enum @@ -220,7 +220,8 @@ typedef enum { G_DESKTOP_POINTER_ACCEL_PROFILE_DEFAULT, G_DESKTOP_POINTER_ACCEL_PROFILE_FLAT, - G_DESKTOP_POINTER_ACCEL_PROFILE_ADAPTIVE + G_DESKTOP_POINTER_ACCEL_PROFILE_ADAPTIVE, + G_DESKTOP_POINTER_ACCEL_PROFILE_CUSTOM } GDesktopPointerAccelProfile; typedef enum @@ -287,3 +288,4 @@ typedef enum } GDesktopAccentColor; #endif /* __gdesktop_enums_h__ */ + diff --git a/schemas/org.gnome.desktop.peripherals.gschema.xml.in b/schemas/org.gnome.desktop.peripherals.gschema.xml.in index f9f892c..64df961 100644 --- a/schemas/org.gnome.desktop.peripherals.gschema.xml.in +++ b/schemas/org.gnome.desktop.peripherals.gschema.xml.in @@ -58,7 +58,25 @@ 'default' Acceleration profile - Acceleration profile used for connected touchpads. 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 touchpad doesn’t support the configured profile, “default” will be used. + Acceleration profile used for the connected trackpad. 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, adaptive (“adaptive”) which adapts the acceleration depending on the mouse movement, or custom ("custom") which will use a custom acceleration profile. If the connected trackpad doesn’t support the configured profile, “default” will be used. + + + + { + 'pointer-step': <1.0>, + 'pointer-speeds': <@ad [0.0, 1.0]> + } + + Custom acceleration configuration + + A dictionary storing custom pointer acceleration settings. + Currently, valid entries are as follows: + + - 'pointer-step': d + - 'pointer-speeds': ad + + More entries may be added later. + 0 @@ -129,7 +147,25 @@ '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. + 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, adaptive (“adaptive”) which adapts the acceleration depending on the mouse movement, or custom ("custom") which will use a custom acceleration profile. If the connected mouse doesn’t support the configured profile, “default” will be used. + + + + { + 'pointer-step': <1.0>, + 'pointer-speeds': <@ad [0.0, 1.0]> + } + + Custom acceleration configuration + + A dictionary storing custom pointer acceleration settings. + Currently, valid entries are as follows: + + - 'pointer-step': d + - 'pointer-speeds': ad + + More entries may be added later. + false @@ -259,7 +295,25 @@ 'default' Acceleration profile - Acceleration profile used for the trackball. The acceleration profile can be set to either default (“default”) which uses the default acceleration profile, flat (“flat”), which accelerates by a device specific constant factor derived from the configured speed, or adaptive (“adaptive”) which adapts the acceleration depending on the movement. If the trackball doesn’t support the configured profile, “default” will be used. + Acceleration profile used for the trackball. 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, adaptive (“adaptive”) which adapts the acceleration depending on the mouse movement, or custom ("custom") which will use a custom acceleration profile. If the trackball doesn’t support the configured profile, “default” will be used. + + + + { + 'pointer-step': <1.0>, + 'pointer-speeds': <@ad [0.0, 1.0]> + } + + Custom acceleration configuration + + A dictionary storing custom pointer acceleration settings. + Currently, valid entries are as follows: + + - 'pointer-step': d + - 'pointer-speeds': ad + + More entries may be added later. + false @@ -277,7 +331,25 @@ 'default' Acceleration profile - Acceleration profile used for the pointing stick. The acceleration profile can be set to either default (“default”) which uses the default acceleration profile, flat (“flat”), which accelerates by a device specific constant factor derived from the configured speed, or adaptive (“adaptive”) which adapts the acceleration depending on the movement. If the pointing stick doesn’t support the configured profile, “default” will be used. + Acceleration profile used for the pointing stick. 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, adaptive (“adaptive”) which adapts the acceleration depending on the mouse movement, or custom ("custom") which will use a custom acceleration profile. If the pointing stick doesn’t support the configured profile, “default” will be used. + + + + { + 'pointer-step': <1.0>, + 'pointer-speeds': <@ad [0.0, 1.0]> + } + + Custom acceleration configuration + + A dictionary storing custom pointer acceleration settings. + Currently, valid entries are as follows: + + - 'pointer-step': d + - 'pointer-speeds': ad + + More entries may be added later. + 'default' @@ -286,3 +358,4 @@ + -- GitLab