I knew this would become tedious: Couldn't find synaptics properties. No synaptics driver loaded?
Owen Thomas
owen.paul.thomas at gmail.com
Wed Jun 9 11:20:37 UTC 2021
On Wed, 9 Jun 2021 at 03:56, MR ZenWiz <mrzenwiz at gmail.com> wrote:
> On Tue, Jun 8, 2021 at 12:04 AM Owen Thomas <owen.paul.thomas at gmail.com>
> wrote:
> >
> :
> > As you were. I found another way to disable the cursor.
> >
> As a general guideline, it is good etiquette to post solutions when
> you find them.
>
> I have a method for so doing - I was curious how you solved yours.
>
Sure, a friend found this script, and although this is written to toggle
the activity of the touchpad, I simply mapped the commands that enable and
disable the touchpad to separate keys - the keys that I assigned to do the
job when I used a command that didn't have a way to indicated the current
state of the touchpad activity.
#!/bin/bash
notify_timeout=10
is_enabled=$(gsettings get org.gnome.desktop.peripherals.touchpad
send-events)
#img_url="/usr/share/icons/Adwaita/32x32/legacy/input-tablet.png"
img_url="/usr/share/icons/Humanity/devices/48/mouse.svg"
if [[ "$is_enabled" = "'disabled'" ]]; then
gsettings set org.gnome.desktop.peripherals.touchpad send-events enabled
notify-send -t $notify_timeout "Trackpad enabled" --icon=$img_url
fi
if [[ "$is_enabled" = "'enabled'" ]]; then
gsettings set org.gnome.desktop.peripherals.touchpad send-events
disabled
notify-send -t $notify_timeout "Trackpad disabled" --icon=$img_url
fi
HTH.
Owen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210609/db60b2d4/attachment.html>
More information about the ubuntu-users
mailing list