Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
klugja
Posts: 8
Joined: 2024-03-11 20:06

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

#1 Post 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
Last edited by klugja on 2024-04-11 15:14, edited 1 time in total.

User avatar
fabien
Forum Helper
Forum Helper
Posts: 688
Joined: 2019-12-03 12:51
Location: Anarres (Toulouse, France actually)
Has thanked: 62 times
Been thanked: 161 times

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

#2 Post 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?

klugja
Posts: 8
Joined: 2024-03-11 20:06

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

#3 Post 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

lindi
Debian Developer
Debian Developer
Posts: 452
Joined: 2022-07-12 14:10
Has thanked: 1 time
Been thanked: 88 times

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

#4 Post by lindi »

What is the actual problem that you are trying to solve?

klugja
Posts: 8
Joined: 2024-03-11 20:06

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

#5 Post 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.

klugja
Posts: 8
Joined: 2024-03-11 20:06

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

#6 Post 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.

Post Reply