r/swaywm • u/EllaTheCat • 2h ago
Utility Sway & Emacs one-liner helps me type despite Parkinson's.
bindsym Pause exec 'wtype -M ctrl -P x -p x -P q -p q -m ctrl'
This is merely an Emacs binding control x control q embedded in a Sway exec command. It toggles the readonly flag of the current buffer. the one you are looking at, maybe editing.
So what? I've got Parkinson's so i am typing with a horde of invisible evil monkeys who just love to sneak in a spurious character at the keyboard, breaking compiles and trashing scripts.
So if i go to another window I can lock the monkeys out. I'm thinking how to tie this in more automatically with Sway, and of course there's a better way everyone knows but me....
I am happy.



