xcape

来自百合仙子's Wiki
跳转到导航 跳转到搜索

将普通键变成组合键。

使用 . 作为 Super_R

使用 xmodmap 修改映射:

! add modifier
add mod4 = period
! assign the keycode to the modifier
keycode 60 = Super_R
! use a spare keycode (for xcape)
keycode 255 = period greater
xcape -e Super_R=period

注意

  • 键名位于 /usr/include/X11/keysymdef.h
  • 被使用的键无法长按重复了

参见