AFTER INSTALLING A COLEMAK-BASED KEYBOARD LAYOUT TO XKB CONFIGURATION FILES MY CAPSLOCK WAS REMAPPED TO BACKSPACE. DUE TO SOME GLITCH IT AFFECTED ALL KEYBOARD LAYOUTS. WAS NOT A HUGE PROBLEM, I’M LIVING WITH THAT FOR A WHILE.
NOW IDK WHAT HAPPENED, BUT CAPSLOCK STATE WAS ACTIVATED AND I CAN NOT TURN IF OFF. IS THERE SOME COMMAND I MAY SEND IN ORDER TO TURN IT OFF? IT SHOULD NOT BE JUST “PRESS <CAPS> BUTTON” COMMAND BECAUSE IT IS REMAPPED AND WILL REGISTER AS <BKSP>. IT SHOULD SEND THE CAPSLOCK COMMAND.
Typing one more sentence painstakingly holding shift because it won’t let me post otherwise.
Failed to open /dev/input/event22 (No such file or directory)
Failed to open /dev/input/event23 (No such file or directory)
Failed to open /dev/input/event24 (No such file or directory)
Just for the record, the man page states that you might need to add your user to the input group.
PERMISSION
dotool requires write permission to /dev/uinput, which is granted to users in group input by a udev rule.
You can test:
echo type hello | dotool
and if need be, you could add your user to group input with:
groupadd -f input
usermod -a -G input $USER
and then it's foolproof to reboot to make the group and rule effective.