Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

Looking for command line access to mate-control-center settings

$
0
0
I am looking for a good command line tool to access the settings used by mate-control-center, at least those for the mouse/touchpad dialog box.

xinput (at least with my understanding of it) does not work very well for the following reasons:

Mouse "handedness" settings:

The map button sequence in xinput get/set-button-map is unrelated to the settings in System -> Control Center -> Mouse -> Mouse dialog box: Changes in one do not affect the other, so it is impossible to write a robust command line script for setting the mouse right or left handed with xinput, because if the Control Center Mouse dialog box is set to the default "Right-handed" you must use

Code:

xinput -set-button-map 3 2 1
to make it left-handed, but if the Control Center Mouse dialog box is set to "Left-handed" you must use

Code:

xinput -set-button-map 1 2 3
No matter what the mouse "handedness" setting in the Control Center, xinput returns 1 2 3 as the sequence of the first three mouse buttons.

Touchpad:

When "Enable touchpad" is un-checked in System -> Control Center -> Mouse -> Touchpad, it seems impossible to enable it again with "xinput set-prop 186":

Code:

nick@nickspanasonic:~$ xinput set-prop 15 186 1nick@nickspanasonic:~$ xinput list-props 15Device 'SynPS/2 Synaptics TouchPad':Device Enabled (186):0Coordinate Transformation Matrix (188):1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000libinput Tapping Enabled (345):1libinput Tapping Enabled Default (346):0libinput Tapping Drag Enabled (347):1libinput Tapping Drag Enabled Default (348):1libinput Tapping Drag Lock Enabled (349):0libinput Tapping Drag Lock Enabled Default (350):0libinput Tapping Button Mapping Enabled (351):1, 0libinput Tapping Button Mapping Default (352):1, 0libinput Natural Scrolling Enabled (322):0libinput Natural Scrolling Enabled Default (323):0libinput Disable While Typing Enabled (353):1libinput Disable While Typing Enabled Default (354):1libinput Scroll Methods Available (324):1, 1, 0libinput Scroll Method Enabled (325):1, 0, 0libinput Scroll Method Enabled Default (326):1, 0, 0libinput Accel Speed (333):0.000000libinput Accel Speed Default (334):0.000000libinput Accel Profiles Available (335):1, 1libinput Accel Profile Enabled (336):1, 0libinput Accel Profile Enabled Default (337):1, 0libinput Left Handed Enabled (338):0libinput Left Handed Enabled Default (339):0libinput Send Events Modes Available (307):1, 1libinput Send Events Mode Enabled (308):0, 0libinput Send Events Mode Enabled Default (309):0, 0Device Node (310):"/dev/input/event4"Device Product ID (311):2, 7libinput Drag Lock Buttons (340):<no items>libinput Horizontal Scroll Enabled (341):0libinput Scrolling Pixel Distance (342):15libinput Scrolling Pixel Distance Default (343):15libinput High Resolution Wheel Scroll Enabled (344):1nick@nickspanasonic:~$ 
But as long as "Enable touchpad" is checked "xinput set-prop" works as expected:

Code:

nick@nickspanasonic:~$ xinput set-prop 15 186 1nick@nickspanasonic:~$ xinput list-props 15Device 'SynPS/2 Synaptics TouchPad':Device Enabled (186):1Coordinate Transformation Matrix (188):1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000libinput Tapping Enabled (345):1libinput Tapping Enabled Default (346):0libinput Tapping Drag Enabled (347):1libinput Tapping Drag Enabled Default (348):1libinput Tapping Drag Lock Enabled (349):0libinput Tapping Drag Lock Enabled Default (350):0libinput Tapping Button Mapping Enabled (351):1, 0libinput Tapping Button Mapping Default (352):1, 0libinput Natural Scrolling Enabled (322):0libinput Natural Scrolling Enabled Default (323):0libinput Disable While Typing Enabled (353):1libinput Disable While Typing Enabled Default (354):1libinput Scroll Methods Available (324):1, 1, 0libinput Scroll Method Enabled (325):1, 0, 0libinput Scroll Method Enabled Default (326):1, 0, 0libinput Accel Speed (333):0.000000libinput Accel Speed Default (334):0.000000libinput Accel Profiles Available (335):1, 1libinput Accel Profile Enabled (336):1, 0libinput Accel Profile Enabled Default (337):1, 0libinput Left Handed Enabled (338):0libinput Left Handed Enabled Default (339):0libinput Send Events Modes Available (307):1, 1libinput Send Events Mode Enabled (308):0, 0libinput Send Events Mode Enabled Default (309):0, 0Device Node (310):"/dev/input/event4"Device Product ID (311):2, 7libinput Drag Lock Buttons (340):<no items>libinput Horizontal Scroll Enabled (341):0libinput Scrolling Pixel Distance (342):15libinput Scrolling Pixel Distance Default (343):15libinput High Resolution Wheel Scroll Enabled (344):1nick@nickspanasonic:~$ 
This makes xinput rather frustrating to use in a reliable way from the Mate desktop, so if anyone can suggest a better command line tool to more dependably control mouse an touchpad from the command line, it would be very helpful.

Statistics: Posted by gurfle — 2024-04-08 17:40 — Replies 1 — Views 11



Viewing all articles
Browse latest Browse all 3474

Trending Articles