Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 6229  / 2 Years ago, sun, december 5, 2021, 9:38:24

I use a MacBook pro and am using Linux Mint. I know this is an Ubuntu forum but Mint is built on top of Ubuntu so I am trying here.



The Macbook Pro doesn't have a Page Down or Page Up button. Applications such as Epiphany and Terminal use these buttons to switch between tabs. Ubuntu and Mint both use APT so I assume all applications are the same if not extremely similar. You cannot re-key-bind the terminal nor Epiphany. So I tried the Keyboard settings app and Keyboard Layout app to see if I could change the keys. This proved futile.



What I want is either to rebind the keys in Epiphany and the Terminal, or bind Page up and Page down to something else.


More From » apt

 Answers
5

I use a macbook air and the fn+up and fn+down keys provide page up and page down functionality.


Alternatively, you can map additional keys to the page up and down functions, i.e. the right command and alt/option keys (honestly, how often do you use them?) Some info on this can be found here:


https://wiki.archlinux.org/index.php/Xmodmap


The short version is to use the xev program to determine what the key codes you want to change are, and create a program (say, ~/.Xmodmap) with information that remaps the key. I use this to swap my capslock and delete keys using:


keycode 0x16 = Delete 
keycode 0x42 = Backspace

Then add the command "xmodmap ~/.Xmodmap" to either your ~/.profile or ~/.bashrc files, and then run the command xmodmap ~/.Xmodmap from terminal, and your changes should take effect.


[#40313] Monday, December 6, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ticrew

Total Points: 190
Total Questions: 111
Total Answers: 99

Location: Fiji
Member since Wed, Jul 14, 2021
3 Years ago
;