When I want to set
Touchpad
to automatically switch the “disabled” or “enabled” according to whether an external mouse is currently connected, but I failed to find the settings that can be achieved inSettings
>Devices
>Mouse & Touchpad
Found a high-quality answer from awesome guy Jacob Vlijm : Reference
Edit Aliases
Add some aliases like following content in ~/.bash_aliases
E.g:
1 | alias touchpad:status="gsettings get org.gnome.desktop.peripherals.touchpad send-events" |
After saving, execute
1 | source ~/.bash_aliases |
Test
view current status of the touchpad
1 | touchpad:status |
turn on
1 | touchpad:on |
turn off
1 | touchpad:off |
auto switching
1 | touchpad:auto |
🔓
Done! O(∩ _ ∩)O~