Score:0

Key sequence off hot key

na flag

I want to be able to use something like Ctrl-Shft-T to trigger a seqquence of keys like "tab - tab - down arrow - down arrow - down arrow - tab - space).

I used to have a program for this in windows but I would really like one for Ubuntu. Does anyone know of one?

David avatar
cn flag
You of course have searched for a macro program for Ubuntu?
vanadium avatar
cn flag
@David finding an accessible macro program in Ubuntu is not that obvious unfortunatelly. Nowadays we have an excellent text expansion utility, espanso, but that cannot - a.f.a.i.k. be used out of the box to trigger keystrokes, although you can launch commands with it that do that. Not that trivial, no need to downvote in my opinion.
David avatar
cn flag
From what topics can I ask about here. Questions that are primarily opinion-based, such as shopping or hardware recommendations. Are on the off topic list.
Score:1
cn flag

This can be done with a utility that simulates key strokes. On desktop environments that use the Xorg display driver, xdotool can do that. That cannot anymore be used in desktop environments on Wayland, such as the default Ubuntu desktop. There, you can use a recent tool ydotool. It works on any Linux system.

It is a matter of binding a command to a shortcut key. Include a little pauze, because while the tools send keystrokes, you should not be holding key strokes. This is an example of a command you would then bind to a shortcut key:

sh -c 'sleep 0.2 ;  ydotool key 15:1 15:0 15:1 15:0 108:1 108:0'

This would send the keystrokes TabTabdown after a delay of 0.2 ms. In many desktops, only a single command can be given while we need two, a sleep and a ydotol command. That is why the two commands are wrapped into one, by loading a shell and passing a command to it.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.