Page 1 of 1

Sticky keys for EasyOS

Posted: Sun May 15, 2022 10:46 pm
by measter

Easy OS 3.4.7

I like to use sticky keys; when alt or ctrl or shift is clicked it stays 'stuck' for one more keypress. Many DEs have a feature for enabling this w/ options; those which don't such as LXQt/DE or WMs, I just install the command line xkbset and configure it for sticky. Easy's mouse/kb wizard doesn't offer sticky and there is no xkbset in the available repo/s.

xkbset is typically available in such as Debian and Ubuntu repo/s.

https://packages.debian.org/stable/xkbset
ie stretch, buster, bullseye, bookworm, sid


Re: Sticky keys for EasyOS

Posted: Mon May 16, 2022 3:44 pm
by williwaw

Hi Mike

the deb you linked to seems to install.
after I downloaded, a dialog popped up to install and it ran without error from a terminal

didn't test it for function though


Re: Sticky keys for EasyOS

Posted: Mon May 16, 2022 5:05 pm
by measter

the deb you linked to seems to install.

I didn't know how to do that w/ Easy. So I dl''d xkbset_0.6-1_amd64.deb and clicked it and pkgget opened for an OK to install.

it ran without error from a terminal

didn't test it for function though

After install I give two commands

xkbset st

which turns on sticky keys and

xkbset exp st

which keeps sticky from expiring. I don't use any of the other sticky options nor any other xkbset features.

Thanks for the info & encouragement :-)


Re: Sticky keys for EasyOS

Posted: Mon May 16, 2022 5:48 pm
by williams2

A script to enable / disable sticky keys (named ax3):

Code: Select all

#!/bin/ash

# Usage:
# ax3     --- enable sticky keys
# ax3 d   --- disable sticky keys
# xkbset h --- help
# note: 5 shift-key presses to toggle sticky keys on/off

if test $# -eq 0
then
# enable:
xkbset exp 1 =accessx =sticky =twokey
xkbset accessx sticky -twokey
else
# disable:
xkbset exp 1 =accessx =sticky =twokey
xkbset -accessx -sticky -twokey
fi

A script using ax (named ax2):

Code: Select all

#!/bin/ash

# Usage:
# ax2     --- enable sticky keys
# ax2 d   --- disable sticky keys

# ax help
# note, ax is not stripped

if test $# -eq 0
then
# enable, don't allow disable:
ax -timeout +stickykeys +stickylatchtolock -stickytwokeydisable
else
# disable:
ax +timeout -stickykeys -stickylatchtolock +stickytwokeydisable
fi

If twokey is enabled, pressing any 2 keys together, turns off sticky keys.
I configured it to just enable sticky keys, but unobtrusively.
Anyone that does not know it is enabled probably wouldn't notice that sticky keys is enabled.

Acesss X like sticky keys can be enabled and configured by editing xorg.conf.
ax and xkbset are easier, I think.