修改有風險,操做需謹慎linux
hung@my-host-name ~$ setxkbmap -print xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete" }; xkb_symbols { include "pc+us+inet(evdev)+group(alt_shift_toggle)" }; xkb_geometry { include "pc(pc105)" }; };
hung@my-host-name ~$ cd /usr/share/X11/xkb hung@my-host-name /usr/share/X11/xkb$ sudo tar -cvf symbols.tar symbols hung@my-host-name /usr/share/X11/xkb$ cd symbols
Ctrl Left
與 Caps
調換hung@my-host-name /usr/share/X11/xkb/symbols$ sudo vim pc
找到行 key <CAPS> { [ Caps_Lock ] };
修改成 key <CAPS> { [ Control_L ] };
找到行 key <LCTL> { [ Control_L ] };
修改成 key <LCTL> { [ Caps_Lock ] };
git
Alt Right
爲功能鍵,設置以下功能鍵位 | 附加功能 |
---|---|
H | 左方向鍵 |
J | 下方向鍵 |
K | 上方向鍵 |
L | 右方向鍵 |
F | 上翻頁 |
N | 下翻頁 |
四、$ | End |
六、^ | Home |
vim us
修改行 key <AE04> { [ 4, dollar ] };
爲 key <AE04> { [ 4, dollar ], [ End ] };
依次類推:github
key <AE06> { [ 6, asciicircum ], [ Home ] }; key <AC04> { [ f, F ], [ Prior ] }; key <AC06> { [ h, H ], [ Left ] }; key <AC07> { [ j, J ], [ Down ] }; key <AC08> { [ k, K ], [ Up ] }; key <AC09> { [ l, L ], [ Right ] }; key <AB06> { [ n, N ], [ Next ] };
sudo vim altwin
修改行 key <RALT> { type[Group1] = "TWO_LEVEL", symbols[Group1] = [ Alt_R, Meta_R ] };
爲 key <RALT> { type[Group1] = "TWO_LEVEL", symbols[Group1] = [ Mode_switch ] };
ubuntu
註銷重新登陸生效vim
執行 sudo dpkg-reconfigure xkb-data
bash
方法二我這裏不生效ide
如今按住 Right Alt
加響應的功能鍵就能夠了執行相應的功能了。佈局