diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-12-12 09:43:26 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-12-12 09:46:43 -0500 |
commit | 5e1da4d5eecb26a2673f7b7e1b6a80ffa518a52d (patch) | |
tree | a6f19fa1f14db9eaf49d9a2e68f522162aaa1860 /Xmodmap | |
parent | c3b5bbfb9dcfed2dfe708b8aad85b00c13e2a100 (diff) | |
download | conf-5e1da4d5eecb26a2673f7b7e1b6a80ffa518a52d.tar.gz conf-5e1da4d5eecb26a2673f7b7e1b6a80ffa518a52d.zip |
more keyboard reconfiguring and refactoring
including setting the function keys to work even without hardware level
remapping
Diffstat (limited to 'Xmodmap')
-rw-r--r-- | Xmodmap | 31 |
1 files changed, 28 insertions, 3 deletions
@@ -1,14 +1,39 @@ +! reset state clear control clear mod1 clear mod4 + +! swap alt and control keycode 37 = Alt_L Meta_L keycode 64 = Control_L keycode 105 = Alt_R Meta_R keycode 108 = Control_R + +! map prtsc to super, because the thinkpad layout puts it in that location keycode 107 = Super_R -keycode 115 = Insert -keycode 118 = Insert -keycode 110 = Insert + +! set the values for control, mod1 (meta), and mod4 (super) now that they have +! been assigned to keycodes add control = Control_L Control_R add mod1 = Alt_L Alt_R Meta_L Meta_R add mod4 = Super_L Super_R + +! map home and end to insert, because the thinkpad layout puts them where +! insert should be +keycode 110 = Insert +keycode 115 = Insert + +! map function keys to their appropriate values (thinkpad does this in +! hardware, but other keyboards don't) +keycode 67 = XF86AudioMute F1 XF86AudioMute F1 F1 F1 XF86Switch_VT_1 +keycode 68 = XF86AudioLowerVolume F2 XF86AudioLowerVolume F2 F2 F2 XF86Switch_VT_2 +keycode 69 = XF86AudioRaiseVolume F3 XF86AudioRaiseVolume F3 F3 F3 XF86Switch_VT_3 +keycode 70 = XF86AudioMicMute F4 XF86AudioMicMute F4 F4 F4 XF86Switch_VT_4 +keycode 71 = XF86MonBrightnessDown F5 XF86MonBrightnessDown F5 F5 F5 XF86Switch_VT_5 +keycode 72 = XF86MonBrightnessUp F6 XF86MonBrightnessUp F6 F6 F6 XF86Switch_VT_6 +keycode 73 = XF86Display F7 XF86Display F7 F7 F7 XF86Switch_VT_7 +keycode 74 = XF86WLAN F8 XF86WLAN F8 F8 F8 XF86Switch_VT_8 +keycode 75 = XF86Tools F9 XF86Tools F9 F9 F9 XF86Switch_VT_9 +keycode 76 = XF86Search F10 XF86Search F10 F10 F10 XF86Switch_VT_10 +keycode 95 = XF86LaunchA F11 XF86LaunchA F11 F11 F11 XF86Switch_VT_11 +keycode 96 = XF86Explorer F12 XF86Explorer F12 F12 F12 XF86Switch_VT_12 |