Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-08-13 01:32:43

syn0ptik
Member
Registered: 2014-08-13
Posts: 16

xfce termanal

Hello,
How can I make own shortcut for switching tabs in a xfce termanal?
By default htis value ctrl+pageup \ padedown. I want another.

Offline

#2 2014-08-13 02:29:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: xfce termanal

Hello, welcome.

First, go to Settings Manager >> Appearance >> Settings tab and check "Enable editable accelerators"

Next, open xfce4-terminal with at least 2 tabs. Then, click on the "Tabs" menu entry, hover the mouse over the "Previous Tab" menu entry and press the key combination that you want to use.

Then repeat for "Next Tab".

More information located here.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2014-08-13 08:55:48

syn0ptik
Member
Registered: 2014-08-13
Posts: 16

Re: xfce termanal

yes, all of this I know.
But you didn't reply on my question.

How can I make my own sortcut?
This shourtcut exists persistent and I want switch them to my own.

Offline

#4 2014-08-13 10:24:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: xfce termanal

Are you saying that you can't change the Ctrl+PgDn keyboard shortcut?

And what shortcut persists?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2014-08-14 07:30:42

syn0ptik
Member
Registered: 2014-08-13
Posts: 16

Re: xfce termanal

Yes, I can't change Ctrl+PgDn to Ctrl+ <-(right)\->(left).
Where I should make this?

Offline

#6 2014-08-14 08:30:39

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: xfce termanal

Are the shortcut key combinations that you want to use already doing something, perhaps globally on your system? If so, I'd look in the settings area of your main desktop menu for a keyboard and/or global shortcut section and, if you find those key combinations, change them to something else, which would (I would think) free them up for a different use.

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#7 2014-08-15 02:11:49

syn0ptik
Member
Registered: 2014-08-13
Posts: 16

Re: xfce termanal

Yes, tecnically it here...
Settings->Keyboard->Application Shortcuts
But I can't make there shortcut for switches tabs in the termanal because I don't know a command.

Offline

#8 2014-08-15 02:22:45

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: xfce termanal

Which version of xfce4-terminal are you running?

xfce4-terminal -V

What does the following command return?

xfconf-query -c xsettings -p /Gtk/CanChangeAccels

Do you have 2 tabs open and are you hovering your mouse button over the "Previous Tab" menu item?

As a test, hover your mouse over "Previous Tab" and press the backspace key. This should delete the accelerator. Does it?

Also, can you post the contents of ~/.config/xfce4-terminal/accels.scm?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2014-08-16 07:07:02

syn0ptik
Member
Registered: 2014-08-13
Posts: 16

Re: xfce termanal

here:

$ xfce4-terminal -V
xfce4-terminal 0.6.3 (Xfce 4.10)

Copyright (c) 2003-2012
	The Xfce development team. All rights reserved.

Written by Benedikt Meurer <benny@xfce.org>
and Nick Schermer <nick@xfce.org>.

Please report bugs to <http://bugzilla.xfce.org/>.

and

$ xfconf-query -c xsettings -p /Gtk/CanChangeAccels
false

I don't have .config/xfce4-terminal path, only:

$ ls .config/               
Thunar  gconf  gtk-3.0  pulse  user-dirs.dirs  user-dirs.locale  xfce4

Also after I create in Settings->Keyboard->Application Shortcuts
xfce4-terminal --tab Ctrl-T own shortcut, I can't make the same with firefox.
all new tabs created in xfce-terminal.

Last edited by syn0ptik (2014-08-16 07:09:33)

Offline

#10 2014-08-16 12:26:42

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: xfce termanal

syn0ptik wrote:
$ xfconf-query -c xsettings -p /Gtk/CanChangeAccels
false

This needs to be set to true if you want to be able to edit those accelerators. Either:
- Settings Manager >> Appearance >> Settings and check "Enable editable accelerators" or:

xfconf-query -c xsettings -p /Gtk/CanChangeAccels -s true

I don't have .config/xfce4-terminal path, only:

$ ls .config/               
Thunar  gconf  gtk-3.0  pulse  user-dirs.dirs  user-dirs.locale  xfce4

Sorry, typo. It should be ~/.config/xfce4/terminal/accels.scm

Also after I create in Settings->Keyboard->Application Shortcuts
xfce4-terminal --tab Ctrl-T own shortcut, I can't make the same with firefox.
all new tabs created in xfce-terminal.

This process will only change the keyboard shortcuts in xfce4-terminal. If you want to change the keyboard shortcuts in firefox, you can use this add-on.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#11 2014-08-17 04:12:51

syn0ptik
Member
Registered: 2014-08-13
Posts: 16

Re: xfce termanal

This process will only change the keyboard shortcuts in xfce4-terminal. If you want to change the keyboard shortcuts in firefox, you can use this add-on.

Yes, but when I open termanal and use firefox this creates tabs in the terminal instead of firefox when firefox is active window.

I found this, but this is for everyone tab I create. How this could be for all tabs?
.config/xfce4/terminal/accels.scm

(gtk_accel_path "<Actions>/terminal-window/goto-tab-1" "<Alt>F1")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-2" "<Alt>F2")

Last edited by syn0ptik (2014-08-17 04:16:21)

Offline

#12 2014-08-17 11:09:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: xfce termanal

I'm sorry but I do not understand your last post. You initially asked how you can change the keyboard shortcuts for Next and Previous tab in xfce4-terminal. I showed you how to do that. Have you successfully changed the keyboard shortcuts for Next and Previous tab in xfce4-terminal?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#13 2014-08-18 03:11:13

syn0ptik
Member
Registered: 2014-08-13
Posts: 16

Re: xfce termanal

Thanks, that's works

(gtk_accel_path "<Actions>/terminal-window/next-tab" "<Shift>Left")
(gtk_accel_path "<Actions>/terminal-window/prev-tab" "<Shift>Right")
(gtk_accel_path "<Actions>/terminal-window/new-tab" "<Primary>t")

Offline

Board footer

Powered by FluxBB