Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

According the gnome-terminal usage:

You can also scroll up or down one line at a time by pressing Control+Shift+Up or Control+Shift+Down.

In this document shows: Control + Shift + Up / Down can scroll up or scroll down the gnome-terminal one line. And, yes, they can!

Now, I want to re-map these two shortcut keys, like: Alt + J / K (Vimer habit).

My understanding

Here some signal must be triggered after press Ctrl + Alt + Up | Down.

The question is, what signal is triggered?

Here are some questions:

  • 0x115 is the signal of windows scrolling. what about Linux?
  • Can the scrolling be executed by command in gnome-terminal? (Some command inputted and gnome-terminal scrolling up/down)

I've download the source code of Gnome-Terminal, and tried to find the answer. But my C is terrible...

By the way, my Linux is Ubuntu 13.10, and gnome-terminal is 3.6:

$ gnome-terminal --version
GNOME Terminal 3.6.1
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.10
Release:    13.10
Codename:   saucy
share|improve this question
I have similar solution but for Konsole? Shift + J and Shift + K. Interested? –  rendon Jan 26 at 15:05
I don't use shift + J / K for remapping, because I using shift for inputing upper case. –  Marslo Jan 26 at 15:15
What about Ctrl + J | K?. I find these shortcuts easy because my "Windows" key is mapped to a Ctrl key. –  rendon Jan 26 at 15:28
That's cool too. How can I do that? Actually, Ctrl+J == Enter by default –  Marslo Jan 26 at 15:35
Ok, let me show you. –  rendon Jan 26 at 15:40

2 Answers 2

up vote 2 down vote accepted


I'm a vimer too and I feel uncomfortable with the default Ctrl position so I remapped the Window's Meta to be an additional Ctrl key. NOTE: you'll need xmodmap.

remove Control = Control_L Control_R
remove mod4 = Super_L Super_R
add Control = Control_L Super_L


To remap Ctrl + J and Ctrl + K in Konsole follow these steps:

  1. Go to Settings -> Configure Current Profile -> Input
  2. Edit the Linux Console key binding
  3. Add a new key binding to scroll down a line at a time: J + Ctrl -> ScrollLineDown
  4. Add a new key binding to scroll up a line at a time: K + Ctrl -> ScrollLineUp

Some screenshots

   enter image description here

                         enter image description here

                                               enter image description here

NOTE: Now you'll be able to scroll up and scroll down a line at a time using the configured shortcuts.


Alt does work!! Just change Ctrl with Alt in the bindings.

share|improve this answer
Well, looks great! Let me have a try. By the way, I used xbindkeys. However, this tools only for command. That's why I asked the second question (Can the scrolling be executed by command in gnome-terminal?) –  Marslo Jan 26 at 15:53
Alright, apt-get install konsole ===> 0 upgraded, 102 newly installed, 0 to remove and 5 not upgraded.. It's installing.... –  Marslo Jan 26 at 16:00
Hi @rendon, I cannot find Configure Current Profile under Settings. Here only Edit Current Profile, and cannot found Input. Would you please give me screenshot? –  Marslo Jan 26 at 16:20
Here my konsole version: $ konsole --version, Qt: 4.8.4, KDE Development Platform: 4.11.3, Konsole: 2.11.3 –  Marslo Jan 26 at 16:22
And, This is my shortcut keys for Alt + J | K to scroll down | up one line. –  Marslo Jan 26 at 17:17

I think the answer you're looking for is here, titled: Keyboard shortcuts. Specifically these:

                            ss #!

NOTE: You can't override this keyboard shortcut through gnome-terminal! If you could it would show up in this menu:

To change a keyboard shortcut:

  1. Select Edit ▸ Preferences ▸ Shortcuts.
  2. Select the shortcut that you wish to edit by clicking on it.
  3. Once the shortcut is selected, click on the shortcut key combination to edit it.
  4. Type in your desired shortcut key combination as you would enter it to use it. The keys that you can use include Alt, Alt Gr, Ctrl, Shift, number and letter keys.

    NOTE: Mnemonic key combinations, such as Alt+F will not work. If you accidentally set one of these key combinations as a shortcut, you may need to reset it before you can change it to something else.

  5. Once you have entered your new shortcut, it will automatically be saved and you should see it in the list next to the corresponding action.

NOTE: To disable a shortcut, edit it and press the Backspace instead of the new shortcut.

Some shortcuts cannot be overridden!

If you notice in the screenshot above (a bit hard to see) it states that:

There are also some shortcuts that cannot be edited

These would include the scrolling up/down, so it would seem there isn't a way to do this directly through gnome-terminal.

share|improve this answer
This shortcut is not the "regular" terminal shortcut. Can you found any settings for scroll one line in Edit -> Preferences -> Shortcuts? No!!! Because I've checked that place long long time ago! –  Marslo Jan 26 at 15:17
@Marslo - Sorry I think you misunderstood what I said. The screenshot shows that you cannot edit these. I've expanded my A to make that more obvious. The same is also mentioned here: askubuntu.com/questions/247539/… –  slm Jan 26 at 15:42
Yeah, I also curious for why scroll down/up one line cannot be specified in settings. –  Marslo Jan 26 at 15:43
@Marslo - yes until you asked this Q I would've guessed that this is modifiable. Makes no sense why it wouldn't be. I would take a look in dconf-editor. Things are sometimes doable there when the regular GUIs don't expose it. –  slm Jan 26 at 15:45
By the way, your additional comments just added 2 mins ago... –  Marslo Jan 26 at 15:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.