How to make `Shift` sticky. So when I press `Shift` it shifts the first next letter or shifts the first next symbol (`'` -> `"`) NixOS
1
vote
1
answer
80
views
> My use case for this is
typeracer
and general typing.
> I tried **NixOS Gnome sticky keys**
> and the first I click it before writing the quote first **2 letters** get
> capitalized and then it works normally, but then I click some other
> modifier
key and I need to turn it off and on, and it just **does not suit my
> use case.**
Found this but i get an error:
https://unix.stackexchange.com/questions/315595/sticky-shift-key
[user@hostname:/etc/nixos]$ xkbset -sticky twokey
XKB not supported for display :0
[user@hostname:/etc/nixos]$ xkbset sticky twokey
XKB not supported for display :0
(Found this: https://bugs.launchpad.net/ubuntu/+source/xkbset/+bug/215496) But it just does not work for me?
#!/usr/bin/env bash
setxkbmap -layout "us"
xkbset -sticky twokey
[user@hostname:/etc/nixos]$ ./sticky_shift.sh
WARNING: Running setxkbmap against an Xwayland server
https://stackoverflow.com/a/36066855/17820864
Found this but for AutoHotKey
and that is available for Windows
and there seems to be an option for Linux
but seems like the version is old.
I am running X11
but I am trying to go for Wayland
if that can help. I will be happy if anything works like I requested.
**NixOS 24.05**
Asked by jirafey
(7 rep)
Jul 28, 2024, 10:17 AM
Last activity: Aug 1, 2024, 11:02 AM
Last activity: Aug 1, 2024, 11:02 AM