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,580 times
1 Answers
5
Approach 1. Using Fn key
Check the keycode of yours key. Run this program at terminal.
xevAt 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,900
- 56
- 98
- 152
desgua
- 33,235
xevopens a white window with a square outline. What next? – Oxwivi Apr 09 '11 at 14:53keycode 51 =represent? – Oxwivi Apr 10 '11 at 19:02keycode 51is called by the keys that's mentioned? – Oxwivi Apr 11 '11 at 11:24keycode 79, and I want to use Home with Fn + Numpad 7 key. Due to circumstances, I am not able to use Ubuntu as much as I'd like to, so sorry for the drawn out discussion. – Oxwivi Apr 12 '11 at 05:53xwvdoes not recognise Fn being pressed individually, and pressing with numpad 7 (where I want to apply Home function) does not give a new keycode. So combining with Fn out of question? What about the super key? – Oxwivi Apr 16 '11 at 09:49manpage I can refer to? – Oxwivi Apr 25 '11 at 06:03gnome-keybinding-properties> go to a shortcut namedDisabled> click on it > test your key combination. Also you can readman xevandman xmodmap– desgua Apr 25 '11 at 23:04