https://github.com/subnut/capsctrl
Turn capslock to Control if held down
https://github.com/subnut/capsctrl
Last synced: 10 months ago
JSON representation
Turn capslock to Control if held down
- Host: GitHub
- URL: https://github.com/subnut/capsctrl
- Owner: subnut
- License: mit
- Created: 2021-08-06T03:10:53.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-30T17:41:05.000Z (over 1 year ago)
- Last Synced: 2025-08-19T07:03:40.188Z (10 months ago)
- Language: C
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
capsctrl
========
DEPENDENCIES -
- libevdev -- https://www.freedesktop.org/wiki/Software/libevdev
- `uinput` kernel module
BUILDING -
make
INSTALLING -
make install
What it does
------------
It listens for key presses...
- If the CapsLock key is merely tapped, it behaves as a normal CapsLock key.
- If the CapsLock key has been held down for a duration more than a
configurable delay, it makes the CapsLock key behave as a Control key.
- If the CapsLock key has been held pressed-down while pressing another key, it
makes the CapsLock key behave as a Control key.
What is it useful for
--------------------
It is useful for mapping the CapsLock key to the Control key without losing
it's original functionality. This _may_ help avoid RSI.
What if I want to change its behaviour (like changing the delay, etc.)
----------------------------------------------------------------------
Since it is written in simple C, and the source code is very small (~200 SLOC),
I encourage you to try and see if you can implement it yourself.
If, for *any* reason, you aren't able to implement what you wanted, I am happy
to help! :)