LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2020, 01:15 AM   #1
blueray
Member
 
Registered: Feb 2020
Location: Bangladesh
Distribution: Debian, Ubuntu, Linux Mint
Posts: 136

Rep: Reputation: 2
Disable Shift+Home & Shift+End Keybindings In Terminal


I am using Linux Mint 20 Ulyana. Desktop Environment is Cinnamon 4.6.6.

Terminal emulator is, GNOME Terminal, 3.36.1.1

In terminal Shift+Home takes me to the top of the terminal.
Shift+End takes me to the bottom of the terminal.

How can I disable these keybindings.
 
Old 07-28-2020, 01:32 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
although it is a bit old, but this is the way: https://unix.stackexchange.com/quest...gnome-terminal
 
1 members found this post helpful.
Old 07-28-2020, 02:09 AM   #3
blueray
Member
 
Registered: Feb 2020
Location: Bangladesh
Distribution: Debian, Ubuntu, Linux Mint
Posts: 136

Original Poster
Rep: Reputation: 2
I actually disabled all keyboard shortcut from the terminal.

Edit > Preferences > Shortcut > Unchecked "Enable shortcuts".

The behaviour is still there.
 
Old 07-28-2020, 02:11 AM   #4
blueray
Member
 
Registered: Feb 2020
Location: Bangladesh
Distribution: Debian, Ubuntu, Linux Mint
Posts: 136

Original Poster
Rep: Reputation: 2
I am trying to use
Code:
bindkey '^[1;2H' _shift-home-key
bindkey '^[1;2F' _shift-end-key
But this is not working probably because of the "top of the terminal, end of the terminal" thing.
 
Old 07-28-2020, 02:13 AM   #5
blueray
Member
 
Registered: Feb 2020
Location: Bangladesh
Distribution: Debian, Ubuntu, Linux Mint
Posts: 136

Original Poster
Rep: Reputation: 2
I also found https://superuser.com/questions/5825...l-ubuntu-12-04

But the instructions are old and sort of risky for me.
 
Old 07-28-2020, 03:10 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053

  1. Why?

  2. This is a keyboard shortcut that works in all terminals, even the non-gui tty console. If you want to completely change or disable it, that's where you need to search. I just did, for about 5min, and don't have an answer.

  3. Other searches suggest that this is not possible with gnome-terminal, so if you want to override it you might need to start using a different terminal.
 
1 members found this post helpful.
Old 07-28-2020, 03:29 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
(probably) you need bind shift-home and shift-end to something different (to see if that work).
Or probably you need to unbind both.
Either in the config of Gnome-Terminal or the terminal settings (https://unix.stackexchange.com/quest...-linux-console).
 
2 members found this post helpful.
Old 07-28-2020, 08:18 AM   #8
blueray
Member
 
Registered: Feb 2020
Location: Bangladesh
Distribution: Debian, Ubuntu, Linux Mint
Posts: 136

Original Poster
Rep: Reputation: 2
Thank you very much for directing me to xmodmap and loadkeys. Let me try those out.
 
  


Reply

Tags
keybindings, mint



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux CentOs shortcut remap Shift+4, Shift+6 lamakaha Linux - Newbie 4 05-12-2016 09:09 AM
zsh keybindings: home, end, ctrl-left etc Kropotkin Linux - Software 1 08-08-2011 10:05 AM
shift+End and Shift+Home key combo doesn't work right santana Linux - Hardware 6 04-23-2010 11:35 AM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Gotta love those ٱٱٱٱٱٱٱ&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration