Skip to main content


The xdotool command on Linux can automate just about any keystroke or mouse actions from the command line, or for shortcut keys


in reply to GadgeteerZA

Note for the folks using Wayland, there's also ydotool that doesn't require X11: github.com/ReimuNotMoe/ydotool
in reply to MisterDigital

But it does not work well at all, especially when you try to get the mouse cursor to a certain coordinate. The same coordinate gets different results every boot for some reason.

You also have to run a background service for it to work.

in reply to MisterDigital

Yes I think right at the bottom of the page I linked to, they mentioned two options for Wayland.
in reply to GadgeteerZA

Most every window manager is going to inherently have a way to set hotkeys/keybindings/shortcuts...whatever you wanna call em. But you're certainly on the right track using xdotool. I'm eager to hear how it goes!

Linux reshared this.

in reply to eshep

@eshep@social.trom.tf Too right, I discovered that great trick to rename the Window was only working with the Brave browser windows. OBS Studio by default does not have that option. Also, my having num lock keys to work as mouse pointer movements was interfering with those shortcut keys. I could use wmctrl to rename a window title but it is only temporary. So still work in progress.