Is there anyway to create shortcuts for functions like Home, End, Pg Up, Pg Down, etc? I frequently use the aforementioned keys, however those keys are only available when the numpad is disabled - there is no dedicated keys for those function on my laptop. I was thinking of using the Fn key to trigger them even when the numpad is enabled.
Asked
Active
Viewed 3,570 times
1 Answers
5
Approach 1. Using Fn key
Check the keycode of yours key. Run this program at terminal.
xev
At this example, the terminal shows that the keycode for my k is "45".
Change them as you like creating this file:
gedit ~/.XmodmapIt's contents should look like this example:
keycode 180 = Home End Down(
keycode 180is for Fn+F3 at my notebook)Ilustration:

(Obs.: if I want to change my k I must use
keycode 45as showed at step "1", if I want to change my Fn+F3 I must usekeycode 180).Log out and log back in or reboot or run this:
xmodmap ~/.Xmodmap
Approach 2. Using a shortcut (combination keys)
-
sudo aptitude install xdotool Open Gnome Keybindings
gnome-keybinding-propertiesCreate the shortcut with this commands:
xdotool getactivewindow key Home xdotool getactivewindow key End xdotool getactivewindow key Page_Up xdotool getactivewindow key Page_DownExample:
Enjoy!
David Foerster
- 36,890
- 56
- 97
- 151
desgua
- 33,215
