Sticky keys for EasyOS

Moderator: BarryK

Post Reply
measter
Posts: 53
Joined: Fri Sep 18, 2020 5:37 pm
Been thanked: 1 time

Sticky keys for EasyOS

Post 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

Mike Easter
williwaw
Posts: 1960
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 172 times
Been thanked: 371 times

Re: Sticky keys for EasyOS

Post 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

measter
Posts: 53
Joined: Fri Sep 18, 2020 5:37 pm
Been thanked: 1 time

Re: Sticky keys for EasyOS

Post 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 :-)

Mike Easter
williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: Sticky keys for EasyOS

Post 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.

Post Reply

Return to “EasyOS”