wset changes keyboard auto-repeat on Wayland, with the same commands as
xset:
wset r rate 210 30waits 210 ms before a held key starts repeating, and then repeats it 30
times a second, just like xset r rate 210 30 did on X11.
Wayland has no protocol for changing these settings, so wset uses each desktop's own way. It supports:
| Desktop | How | Survives a restart |
|---|---|---|
| GNOME | org.gnome.desktop.peripherals.keyboard in GSettings |
yes |
| Sway | swaymsg input … repeat_delay/repeat_rate |
no |
wset q works on every compositor, because it reads what the compositor
tells applications.
wset [-d] option ...-
rorr onturns auto-repeat on,r offor-rturns it off. -
r rate delay [rate]waitsdelaymilliseconds (1 to 10000) before a held key repeats, then repeats itratetimes a second (1 to 255), and turns auto-repeat on. Without a rate, the rate stays as it is. -
qor-qshows the current settings, in the linesxset quses for them:Keyboard Control: auto repeat: on auto repeat delay: 210 repeat rate: 30 -
-dprints debugging messages to stderr. -
-hor--helpshows a summary,-Vor--versionthe version.
Options can be combined, as in wset r rate 210 30 q.
wset changes nothing by itself: it doesn't run when it is installed or when you log in, and it only changes the values you give it.
Like X, GNOME keeps the time between repeats, which xset and wset compute as 1000 / rate milliseconds; for some rates that makes the rate applications see a little different, for example 62 for 60.
On GNOME the settings stay after logging out or rebooting, so running wset once is enough, and it also works in a GNOME X11 session. Sway forgets them when it restarts; to keep them, put these lines in its config instead:
input type:keyboard repeat_delay 210
input type:keyboard repeat_rate 30
wset sets them for every keyboard, including those that have their own
input block in the Sway config.
- xset fills in 660 ms and 25 a second for values left out of
r rate; wset changes only the values you give, sor rateneeds at least the delay. -dturns on debugging messages; it doesn't take a display.- Auto-repeat for single keys (
r 38,-r 38) is not supported. - Only keyboard auto-repeat is supported, not the screen saver, DPMS, bell and the other xset settings.
On Debian 12+ and Ubuntu 22.04+, add the APT repository once:
sudo apt install -y curl
sudo install -d -m 0755 /etc/apt/keyrings
sudo curl -fsSLo /etc/apt/keyrings/wset.asc https://ksobitov.github.io/wset/wset.asc
sudo chmod 644 /etc/apt/keyrings/wset.asc
sudo tee /etc/apt/sources.list.d/wset.sources <<EOF
Types: deb
URIs: https://ksobitov.github.io/wset
Suites: stable
Components: main
Signed-By: /etc/apt/keyrings/wset.asc
EOF
sudo apt update
sudo apt install wsetThe repository is signed with the key
035B 17F4 3B9A A0B0 25D2 4DE5 DA38 B63C 9450 3CEB, the same as
wbanish's.
Elsewhere, build it with Cargo:
cargo install --git https://github.com/ksobitov/wsetTo uninstall:
sudo apt purge wset
sudo rm /etc/apt/sources.list.d/wset.sources /etc/apt/keyrings/wset.asc