Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-02-07 23:31:55

mobius
Member
From: Canada
Registered: 2024-01-04
Posts: 42

xfce4-terminal keybindings

Hi.  In xfce4-terminal, one can use <Shift><PgUp> and <Shift><PgDn> to page up and down through the screen buffer (rather than using the scroll-bar).  As a keyboard-oriented guy, I really like this feature, but want to change the shortcuts to ones that I am more used to.  But I cannot find where these shortcuts are set (and I've looked everywhere I could think of)!  I'd also like to set additional shortcuts to scroll up/down in the screen buffer line-by-line, if possible.  Can anyone point me to the proper location to change these shortcuts?

Offline

#2 2024-02-08 00:28:55

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 376

Re: xfce4-terminal keybindings

xfce4-terminal>>edit>>preferences>>shortcuts

I think there down towards the bottom.


Siduction
Debian Sid
Xfce 4.18

Offline

#3 2024-02-08 00:56:58

mobius
Member
From: Canada
Registered: 2024-01-04
Posts: 42

Re: xfce4-terminal keybindings

Thanks, but I couldn't find screen-buffer shortcuts in that dialog.

Offline

#4 2024-02-08 11:51:16

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 376

Re: xfce4-terminal keybindings

Isn't this what you asked for. Page up/down and line up/down??? Sorry about the pic.

CUj2fYa.png


Siduction
Debian Sid
Xfce 4.18

Offline

#5 2024-02-08 20:08:30

mobius
Member
From: Canada
Registered: 2024-01-04
Posts: 42

Re: xfce4-terminal keybindings

Yes!  That is what I am looking for.  But... those do not appear in my terminal menu Edit>Shortcuts.  I am using xfce4-terminal 1.0.4 (the latest available on Salix).  What is your version?

Offline

#6 2024-02-08 20:52:12

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 376

Re: xfce4-terminal keybindings

Not sure what to suggest. I'm on version 1.1.1 so this is probably the difference. Salix is built on Slack yes? I see an newer version is available in there list.


Siduction
Debian Sid
Xfce 4.18

Offline

#7 2024-02-08 20:55:37

mobius
Member
From: Canada
Registered: 2024-01-04
Posts: 42

Re: xfce4-terminal keybindings

Yes, it is.  Is there a way that I can add or use Slackware repositories?

Offline

#8 2024-02-08 21:08:21

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

Re: xfce4-terminal keybindings

Note that that Shortcuts tab requires a newer version of libxfce4ui (version 4.17.2 I believe) for it to display. I think you can also directly edit ~/.config/xfce4/terminal/accels.scm if you don't have the dialog.


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 2024-02-08 21:17:10

mobius
Member
From: Canada
Registered: 2024-01-04
Posts: 42

Re: xfce4-terminal keybindings

Thanks.  My libxfce4ui shows 4.18.1-x86_64-1gv, but the xfce4-terminal is older.  From what I've been reading, Slackware repos are already included in Salix package manager, so don't know how I could get the newer one, since it's not listed.

Yes, I would think that accels.scm should work.  Trouble is, I don't know the function names to add in there, since they are not already there.  Would you mind seeing what they are called in yours?

EDIT:  Also, I should add that the accelerator/shortcuts I would like to use with these functions use the <Alt> modifier.  Would these work?  The only <Alt> modifiers I see in my current accels.scm are Alt-1, Alt-2, etc. to select tabs.

Last edited by mobius (2024-02-08 21:27:57)

Offline

#10 2024-02-08 22:19:50

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

Re: xfce4-terminal keybindings

I changed "Scroll one line up" to Alt+Up and "Scroll one page down" to Alt+Down, and this is what was saved in my accels.scm file:

(gtk_accel_path "<Actions>/terminal-widget/shift-up" "<Alt>Up")
(gtk_accel_path "<Actions>/terminal-widget/shift-pageup" "<Alt>Down")

I believe you need to write to this file when xfce4-terminal isn't running.


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 2024-02-08 22:39:51

mobius
Member
From: Canada
Registered: 2024-01-04
Posts: 42

Re: xfce4-terminal keybindings

@ToZ, thanks very much for taking the time to check.  I added those lines and saved with the terminal closed, but upon restarting the terminal, those keystrokes had no effect.  In my accels.scm file, there are no "terminal-widget" lines; they are all "terminal-window" lines.  So, I changed that part of each one, and again saved with the terminal closed.  Sadly, upon restarting, those keystrokes still had no effect.  It appears as though I would need to have the newer version of the terminal, in order to customize those functions.  sad

It puzzles me that the official Salix repos, which supposedly include the Slackware repos, have an older version of terminal, and yet @eriefisher reports seeing a newer version in Slackware!

EDIT:  Here is another oddity:  in my accels.scm, all of the goto-tab-x lines are commented out, and yet in the shortcut dialog, all of the Go to Tab X settings have the corresponding Alt-X shortcuts shown.  The file I'm using is definitely ~/.config/xfce4/terminal/accels.scm.  Could there be another, overriding file somewhere?

Last edited by mobius (2024-02-08 22:47:43)

Offline

#12 2024-02-08 22:55:34

Tamaranch
Member
Registered: 2020-12-31
Posts: 258

Re: xfce4-terminal keybindings

Offline

#13 2024-02-08 23:24:25

mobius
Member
From: Canada
Registered: 2024-01-04
Posts: 42

Re: xfce4-terminal keybindings

@Tamaranch, thanks for the confirmation.  So, I need a newer version of terminal, but it doesn't seem to be available in the Salix repos.

In any case, I wouldn't mind testing some other terminal emulators.  Is it okay to use, with Xfce, some other system's terminal, such as KDE's konsole?  Or is that going to create problems?

Offline

#14 2024-02-08 23:29:49

Tamaranch
Member
Registered: 2020-12-31
Posts: 258

Re: xfce4-terminal keybindings

No, that shouldn't be a problem. There's also gnome-terminal if you want to stay in the GTK world (and perhaps add fewer dependencies).

Offline

#15 2024-02-09 00:23:14

mobius
Member
From: Canada
Registered: 2024-01-04
Posts: 42

Re: xfce4-terminal keybindings

Thanks.  I've heard that konsole is very configurable, which is why I asked.  But there are many terminal emulators listed in the Salix repos, including gnome-terminal, so I may spend some time playing with several.

Offline

#16 2024-02-12 21:27:53

mobius
Member
From: Canada
Registered: 2024-01-04
Posts: 42

Re: xfce4-terminal keybindings

So, I tried xfce4-terminal version 1.2 in PCLinux, and was able to change the shortcuts shown in Preferences for scroll-line-up/down and scroll-page-up/down, but there are no settings in that dialog for screen-buffer-top/bottom (under any name), although screen-buffer-top/bottom do exist with Shift-Home/Shift-End--they just can't be changed, not even by editing the accels.scm file.

And I also tried xfce4-terminal version 1.0.4 in MX-Linux (the latest available in that distro), which strangely enough did not have any way to change the shortcuts in any of the menus, and did not have an accels.scm file, even though that is the same version which I have on Salix!

Would it be safe to download and manually upgrade xfce4-terminal on my Salix (if that is possible), since there is already a recent version installed?

Offline

Board footer

Powered by FluxBB