You are not logged in.

#1 2020-11-13 18:28:39

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

[SOLVED] Shortcuts to xfce4-terminal keyboard buttons

Hello
I want to change the terminal shortcuts
From which part and where should I change?
Thank you for your help

EDIT:
Of course, I do not say this Ctrl + Alt + T, I know this myself that when I press these, it enters the terminal ..
I want the shortcuts inside the terminal itself to be copied and pasted and ...

Last edited by SPYAM (2020-11-14 09:20:57)


Only progress!

Offline

#2 2020-11-14 02:04:22

jonno2002
Member
Registered: 2016-11-21
Posts: 706

Re: [SOLVED] Shortcuts to xfce4-terminal keyboard buttons

you need to edit this file:

~/.config/xfce4/terminal/accels.scm

for example for copy and paste to be "ctrl-c" and "ctrl-v" you would do the following:

(gtk_accel_path "<Actions>/terminal-window/copy" "<Primary>c")
(gtk_accel_path "<Actions>/terminal-window/paste" "<Primary>v")

Offline

#3 2020-11-14 07:52:49

seth
Member
Registered: 2012-09-03
Posts: 58,849

Re: [SOLVED] Shortcuts to xfce4-terminal keyboard buttons

nb. that there's a reason why "ctrl+c" is not the default copy shortcut in terminals.
In particular because shells use it to cause a SIGINT.

Offline

#4 2020-11-14 08:18:37

jonno2002
Member
Registered: 2016-11-21
Posts: 706

Re: [SOLVED] Shortcuts to xfce4-terminal keyboard buttons

thats true but i never had an issue when i was using xfce4-terminal, copy/paste worked when i wanted and ctrl-c to SIGINT worked fine also, maybe i was just lucky in my use case

Offline

#5 2020-11-14 08:23:20

seth
Member
Registered: 2012-09-03
Posts: 58,849

Re: [SOLVED] Shortcuts to xfce4-terminal keyboard buttons

The terminal emulator might qualify the input on whether there's a selection (but idk whether the xfce terminal does that)

Offline

#6 2020-11-14 08:51:59

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: [SOLVED] Shortcuts to xfce4-terminal keyboard buttons

jonno2002 wrote:

you need to edit this file:

~/.config/xfce4/terminal/accels.scm

for example for copy and paste to be "ctrl-c" and "ctrl-v" you would do the following:

(gtk_accel_path "<Actions>/terminal-window/copy" "<Primary>c")
(gtk_accel_path "<Actions>/terminal-window/paste" "<Primary>v")

Unfortunately, these things that you said I did did not happen
But when I press ctrl + c or ctrl + v, they do not work!


Only progress!

Offline

#7 2020-11-14 08:53:43

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: [SOLVED] Shortcuts to xfce4-terminal keyboard buttons

My dear friends, now I want to copy a text I selected inside the terminal from the keyboard with the keyboard buttons. Which buttons should I press on the keyboard?


Only progress!

Offline

#8 2020-11-14 09:00:55

seth
Member
Registered: 2012-09-03
Posts: 58,849

Re: [SOLVED] Shortcuts to xfce4-terminal keyboard buttons

You'll have to start a new terminal process to apply the changes.
The default IBM shortcuts that likely work in most terminals by default are ctrl+insert (copy) and shift+insert (paste)

Offline

#9 2020-11-14 09:20:31

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: [SOLVED] Shortcuts to xfce4-terminal keyboard buttons

seth wrote:

You'll have to start a new terminal process to apply the changes.
The default IBM shortcuts that likely work in most terminals by default are ctrl+insert (copy) and shift+insert (paste)

Thank you. Resolved


Only progress!

Offline

Board footer

Powered by FluxBB