用F9来替换insert键:
# set Key and Shift+Key
xmodmap -e "keycode 75 = Insert Insert"
or
# set all
xmodmap -e "keycode 75 = Insert Insert Insert Insert Insert Insert"
先用xev来查看按键的键值,上面的keycode 75就是按F9输出的键值
Each keysym column in the table corresponds to a particular combination of modifier keys:
sudo apt install autokey-gtk
内容是:
keyboard.send_keys("<shift>+<insert>")
设置hotkey为:
<ctrl>+<alt>+i
参考文献:
https://stackoverflow.com/questions/55647612/trying-to-emulate-shiftend-with-autokey
https://unix.stackexchange.com/questions/307821/trying-to-remap-f9-to-insert-key