这里介绍的是专门给 Yoga 12, (实际上,对 X230T等也适合) 键盘缺失Break/Pause 等按键
• Fn+B: Has the same function as the Break key.
• Fn+P: Has the same function as the Pause key.
• Fn+S: Has the same function as the SysRq key.
• Fn+K: Has the same function as the ScrLK key.
在 Ubuntu 14.04.3 + mate 1.8.2系统上
代码: 全选
sudo apt-get install gromit-mpx
安装,采用 github 上的 Yoga12 分支,我创建和维护的分支, swap shortcut key for "clear screen" and "toggle visibility", 同时,清屏时退出涂鸦模式(master分支,清屏不退出涂鸦模式;而触发涂鸦层不可见,再进入涂鸦状态时,先前的涂鸦不清除)
代码: 全选
sudo apt-get install git build-essential autoconf
sudo apt-get install libgtk-3-dev
git clone -b Yoga12 https://github.com/maxchendt/gromit-mpx.git
cd gromit-mpx
autoreconf --install
./configure
make
代码: 全选
./gromit-mpx --key Pause --undo-key Delete
成功后Fn+P Pause按键 painting
Fn+B Break按键[Ctrl+Pause] clear screen and exit painting
Fn+SHIFT-P Shift+Pause按键 toggle visibility
Delete 实现 undo
SHIFT-Delete 恢复上一次 undo
代码: 全选
sudo cp gromit-mpx /usr/local/bin/gromit-mpx-Yoga
代码: 全选
./gromit-mpx --key Pause --undo-key Escape
最后,桌面创建launch,Applications -> Graphics -> Gromit-MPX 点击右键,选择 Add this launch to desktop. 再修改 命令为Esc 实现 undo
SHIFT-Esc: redo last undone stroke
代码: 全选
/usr/local/bin/gromit-mpx-Yoga --key Pause --undo-key Escape