Ubuntu – Disable Keyboard Repeat from command line

command linekeyboard

Is it possible to disable the keyboard repeat functionality, as is needed by various Flash games, through the command line?

Normally it can be disabled by going to settings -> keyboard and hitting the button, but I'm wondering if there's a command line / programmatic solution which I can implement into a program of mine.

Best Answer

You can use the xset utility, which works on the X.org level, across desktop environments. (The dconf / gsettings solution is Gnome specific.)

To switch off keyboard repeat:

xset r off

To switch keyboard repeat on again, with the same delay and rate settings as before:

xset r on

See man xset for details.