如何获取大写/数字/滚动锁定键OSD通知?
每当CAPS,Num或Scroll Lock状态切换时,我想短暂地显示OSD通知。
有没有办法做到这一点?
已经有一个应用程序尝试执行此操作,称为indicator-keylock
。 你需要一个PPA来安装它:
sudo add-apt-repository ppa:tsbarnes/indicator-keylock sudo apt-get update sudo apt-get install indicator-keylock setsid indicator-keylock # to run it the first time
但我有兴趣看看是否有一种巧妙的方式来绑定这些锁定切换事件。