! this xmodmap file changes the Num Lock OFF binds of all Keypad keys to make it easier to make custom shortcuts with these keys using XF86Launch codes
! what are XF86Launch symbolic codes: https://askubuntu.com/a/1064810/1560675
! note that by using these you lose the default Num Lock OFF binds (duh?) I left them here commented out just for reference
! from: https://askubuntu.com/a/1463491/1560675
! you can use the "xev" command to make sure the keys are the same for your keyboard
! you might need to use other XF86Launch codes like XF86LaunchD XF86LaunchE and XF86LaunchF if some of the ones used here are already used by other hardware keys already (some keyboards have dedicated hardware buttons for these codes but they are quite rare) or another custom xmodmap you might be using
! you can comment the lines that change binding you do not need simply by adding a "!" in the beginning of the corrisponding line (lines starting with "!" are comment and will be ignored by xmodmap)
! I have left the original bindings commented out just as reference
! default key 79 uses "Keypad Home" with Num Lock OFF and "Keypad 7" with Num Lock ON
!keycode 79 = KP_Home KP_7 KP_Home KP_7
! custom key 79 uses "XF86Launch0" with Num Lock OFF and "Keypad 7" with Num Lock ON
keycode 79 = XF86Launch0 KP_7 XF86Launch0 KP_7
! default key 80 uses "Keypad Up" with Num Lock OFF and "Keypad 8" with Num Lock ON
!keycode 80 = KP_Up KP_8 KP_Up KP_8
! custom key 80 uses "XF86Launch1" with Num Lock OFF and "Keypad 8" with Num Lock ON
keycode 80 = XF86Launch1 KP_8 XF86Launch1 KP_8
! default key 81 uses "Keypad Prior" with Num Lock OFF and "Keypad 9" with Num Lock ON
!keycode 81 = KP_Prior KP_9 KP_Prior KP_9
! custom key 81 uses "XF86Launch2" with Num Lock OFF and "Keypad 9" with Num Lock ON
keycode 81 = XF86Launch2 KP_9 XF86Launch2 KP_9
! default key 82 uses "Keypad Subtract" with Num Lock OFF and "Keypad Subtract" with Num Lock ON
!keycode 82 = KP_Subtract KP_Subtract KP_Subtract KP_Subtract KP_Subtract KP_Subtract XF86Prev_VMode
! custom key 82 uses "XF86Launch3" with Num Lock OFF and "Keypad Subtract" with Num Lock ON
keycode 82 = XF86Launch3 KP_Subtract XF86Launch3 KP_Subtract KP_Subtract KP_Subtract XF86Prev_VMode
! default key 83 uses "Keypad Left" with Num Lock OFF and "Keypad 4" with Num Lock ON
!keycode 83 = KP_Left KP_4 KP_Left KP_4
! custom key 83 uses "XF86Launch4" with Num Lock OFF and "Keypad 4" with Num Lock ON
keycode 83 = XF86Launch4 KP_4 XF86Launch4 KP_4
! default key 84 uses "Keypad Begin" with Num Lock OFF and "Keypad 5" with Num Lock ON
!keycode 84 = KP_Begin KP_5 KP_Begin KP_5
! custom key 84 uses "XF86Launch5" with Num Lock OFF and "Keypad 5" with Num Lock ON
keycode 84 = XF86Launch5 KP_5 XF86Launch5 KP_5
! default key 85 uses "Keypad Right" with Num Lock OFF and "Keypad 6" with Num Lock ON
!keycode 85 = KP_Right KP_6 KP_Right KP_6
! custom key 85 uses "XF86Launch6" with Num Lock OFF and "Keypad 6" with Num Lock ON
keycode 85 = XF86Launch6 KP_6 XF86Launch6 KP_6
! default key 86 uses "Keypad Add" with Num Lock OFF and "Keypad 6" with Num Lock ON
!keycode 86 = KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add XF86Next_VMode
! custom key 86 uses "XF86Launch7" with Num Lock OFF and "Keypad 6" with Num Lock ON
keycode 86 = XF86Launch7 KP_Add XF86Launch7 KP_Add KP_Add KP_Add XF86Next_VMode
! default key 87 uses "Keypad End" with Num Lock OFF and "Keypad 1" with Num Lock ON
!keycode 87 = KP_End KP_1 KP_End KP_1
! custom key 87 uses "XF86Launch8" with Num Lock OFF and "Keypad 1" with Num Lock ON
keycode 87 = XF86Launch8 KP_1 XF86Launch8 KP_1
! default key 88 uses "Keypad Down" with Num Lock OFF and "Keypad 2" with Num Lock ON
!keycode 88 = KP_Down KP_2 KP_Down KP_2
! custom key 88 uses "XF86Launch9" with Num Lock OFF and "Keypad 2" with Num Lock ON
keycode 88 = XF86Launch9 KP_2 XF86Launch9 KP_2
! default key 89 uses "Keypad Next" with Num Lock OFF and "Keypad 3" with Num Lock ON
!keycode 89 = KP_Next KP_3 KP_Next KP_3
! default key 89 uses "XF86LaunchA" with Num Lock OFF and "Keypad 3" with Num Lock ON
keycode 89 = XF86LaunchA KP_3 XF86LaunchA KP_3
! default key 90 uses "Keypad Insert" with Num Lock OFF and "Keypad 0" with Num Lock ON
!keycode 90 = KP_Insert KP_0 KP_Insert KP_0
! default key 90 uses "XF86LaunchB" with Num Lock OFF and "Keypad 0" with Num Lock ON
keycode 90 = XF86LaunchB KP_0 XF86LaunchB KP_0
! default key 91 uses "Keypad Delete" with Num Lock OFF and "Keypad Decimal" with Num Lock ON
!keycode 91 = KP_Delete KP_Decimal KP_Delete KP_Decimal
! default key 91 uses "XF86LaunchC" with Num Lock OFF and "Keypad Decimal" with Num Lock ON
keycode 91 = XF86LaunchC KP_Decimal XF86LaunchC KP_Decimal