Keyboard: How to set Number Keypad as Function Keys for Windows, Linux, Mac

, , …,

This page is a tutorial of how-to set the numberpad keys to do useful things, for {Windows, Linux, Mac}.

Microsoft Windows

For Microsoft Windows, the best tool is AutoHotkey. I've been using AutoHotkey for many years.

pc keyboard
the numeric keypad of a standard PC keyboard

First, you need to install AutoHotkey. See: AutoHotkey Tutorial ⌨

Here's AHK examples:

;; NumpadSub decrease sound volume, NumpadAdd increase sound volume
$NumpadAdd::Send {Volume_Up 5} ; increase sound level
$NumpadSub::Send {Volume_Down 5} ; decrease sound level
;; Mozilla Firefox

#IfWinActive ahk_class MozillaWindowClass

NumpadDiv::Send ^{PgUp} ; previous tab
NumpadMult::Send ^{PgDn} ; next tab
NumpadSub::Send ^w ; close window

For more examples, see:

Linux

For Linux, there are 2 things you need to do.

  1. Set a key to run a shell command.
  2. Install shell command tools so that you can write shell scripts to send a key combination such as 【Ctrl+c】, or {switch, close, launch, …} {windows, apps, tabs, …}.

For popular Linux desktops such as Gnome, KDE, Ubuntu Unity, Xfce , there's a GUI that lets you easily set a key to run a shell command. Look for it in your system control panel.

xfce keyboard setting panel 2013-06-01
Xfce keyboard setting panel

I recommend using the desktop GUI to set a key. Otherwise, you can use xbindkeys. See Linux: Xbindkeys Tutorial ⌨

For {switch, open, close} windows, see Linux: 「wmctrl」 Add Keyboard Shortcuts to Switch to App ⌨

For sending key combinations such as 【Ctrl+c】, 【Ctrl+w】, 【Alt+Tab ↹】, use xvkbd. See: Linux: How to Set F2 F3 F4 to Cut Copy Paste Globally ⌨

For other things, see: Linux Keybinding Tutorial Index ⌨

Mac

Apple iMac Keyboard A1243-numpad
Numpad on Apple Keyboard. amazon img src

For Mac, by default, it's impossible to make the number pad do anything other than inputting numbers, because Mac does remapping at some low level.

You need tool to set keys on numberpad, see: Mac OS X Keyboard Layout, Keymapping, Keybinding, Tools.

Emacs

If you use emacs, you are in luck! Because emacs has the most robust and extensive ways to make keys do what you want. And you can use it across {Microsoft Windows, Mac, Linux}.

See: Emacs: Using Number Pad Keys

Where to Buy a Number Keypad?

perixx peripad number keypad
perixx peripad number keypad amazon

For more choices, see: List of Programable Keypads

blog comments powered by Disqus