Page 1 of 1

[Solved] Is there a way to create a key macro for a terminal program

Posted: 2024-03-20 22:31
by klugja
I have recently moved to bookworm and Wayland, and I have not found a way that works with gnome-terminal or terminator that will allow me to string together a set of keystrokes and enter it into the terminal session. I must be able to enter control or alt in the strings.

Is there a way that works with Gnome and Wayland?

I am open to a different terminal program if needed.

Looking at ps on my system I am running:

Code: Select all

/usr/libexec/gdm-wayland-session /usr/bin/gnome-session

Re: Is there a way to create a key macro for a terminal program

Posted: 2024-03-21 11:44
by fabien
klugja wrote: 2024-03-20 22:31 string together a set of keystrokes and enter it into the terminal session. I must be able to enter control or alt in the strings.
I'm not clear on what you want to achieve. Can you provide us with a use case?

Re: Is there a way to create a key macro for a terminal program

Posted: 2024-03-21 16:56
by klugja
How about put together:

ctrl shift C ctrl shift V

which in most terminal programs would copy and past the highlighted text to the current entry point.

In older versions of Debian I could use the emulated middle mouse button to do this on my trackball, but that does not seem to work anymore. But why not just have say Window-Z, which right now doesn't seem to do anything, be mapped to

ctrl shift C ctrl shift V

Re: Is there a way to create a key macro for a terminal program

Posted: 2024-03-21 21:44
by lindi
What is the actual problem that you are trying to solve?

Re: Is there a way to create a key macro for a terminal program

Posted: 2024-03-22 16:15
by klugja
I thought I stated that in #3. I just want to be able to do a quick cut and paste of highlighted text for a terminal program in one short keystroke. Its speeding up what I have to type. From my perspective, this is a loss of functionality brought about by Wayland.

Re: Is there a way to create a key macro for a terminal program

Posted: 2024-04-11 15:13
by klugja
I finally solved my problem. By switching to X11, SDDM, and KDE Plasma, my middle button emulation settings now work, which did not in Gnome/Wayland.

Now I can cut and paste in a terminal emulator with a single middle button click, and scrolling works too! I hope X11 doesn't go away until somebody fixes this issue in Gnome.