How to enable sticky keys?

hello everyone!

how to enable sticky keys?

best,
rx0

1 Like

I’ve done the following on VirtualBox with Lubuntu 24.04 LTS and it seems to work:

  • Single stroke on e.g. a shift key activates it.
  • Double stroke on the key locks it and another stroke unlocks it again.

First you have to install xkbset by terminal command
sudo apt install xkbset

Now the two commands
xkbset exp sticky -twokey latchlock
and
xkbset sticky -twokey latchlock
would do the job but don’t any more after a reboot.

Hence we have to write an autostart batch by

cd ~/.local
touch pcstart.sh
chmod +x pcstart.sh
featherpad pcstart.sh

Please write the following to the file:

#!/bin/bash
xkbset exp sticky -twokey latchlock
xkbset sticky -twokey latchlock

and save it afterwards.

Now go to
Applications Menu β†’ Preferences β†’ LXQt Settings β†’ LXQt Configuration Center β†’ Session Settings β†’ Autostart β†’ Add

In the freshly opened window type
Name: Autostartbatch
Command: ~/.local/startpc.sh

β†’ OK β†’ Close

At last please reboot and see whether it works. :slightly_smiling_face:

3 Likes

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.