0

Is there a way to get "sticky" shift, so that I can (sequentially) type

  • shift, 5 to get %
  • shift, 3 to get #
  • shift, r to get R

There's shift lock in X11, but that doesn't cancel after producing a shifted character.

4
  • 1
    That's the normal mapping for any US keyboard. Do you have a different keyboard installed? Where does your distro (please add a tag) ask for which keyboard you have? Alternatively, you can use xmodmap to generate any sort of mapping you want. Commented Oct 11, 2016 at 8:07
  • ... presuming that it is even X Window System user interfaces that you are talking about. You haven't stated that, either. Commented Oct 11, 2016 at 8:59
  • Assuming X, see this question. Commented Oct 11, 2016 at 9:20
  • 2
    Do mean sticky shift, where you release the shift key before typing 5 , in order to get % ? Commented Oct 11, 2016 at 10:33

1 Answer 1

3

Your requirement forms part of the AccessX accessibility features that has been packaged for X11 into the xkbset command which you should be able to find in the package of the same name.

The usage is

xkbset sticky twokey 

After this, every time you press and release the Shift key, the following single typed character will be shifted. It applies similarly to the Control key. To cancel the action use

xkbset -sticky twokey 
1
  • the above is what I wanted, prretty sure. Without anything following the "xkbset", a whole bunch of strings are output to my konsole. Proves only that it is hard to explain utilities like this. Thanks very much. Commented Oct 18, 2016 at 23:44

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.