keylock
所属分类:远程控制/远程桌面
开发工具:C
文件大小:3KB
下载次数:0
上传日期:2013-03-21 17:01:08
上 传 者:
sh-1993
说明: X11的键锁定:使任何修改器成为锁定修改器
(Keylock for X11: make any modifier a locking modifier)
文件列表:
LICENSE (1457, 2013-03-22)
Makefile (395, 2013-03-22)
keylock.c (4338, 2013-03-22)
Allows any modifier key to become a locking modifier; capslock is a locking version of shift. Keylock lets you make controllock, altlock, hyperlock, etc.
## Install
Run
make; make install
By default, this will install in /usr/local/bin. If you'd like it somewhere else, then copy the executables to your `bin` directory of choice.
## Dependencies
- libxtst
## Usage
```keylock KEYCODE ...```
Where keycode is the key you'd like to lock. I, for instance, use
```keylock 105 108 &```
which sets my right alt and right control to be altlock and controllock.
Once you've tested and are happy with your locking, you can put the call in .xsession.
## Troubleshooting
While testing, you may discover that exiting keylock can leave you in a locked state (i.e., control is ALWAYS pressed). This is a bummer. If you whack the key in question a couple times -- to generate keyrelease events -- things usually come right.
近期下载者:
相关文件:
收藏者: