https://github.com/richiehowelll/cat-lock
https://github.com/richiehowelll/cat-lock
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/richiehowelll/cat-lock
- Owner: richiehowelll
- Created: 2024-05-04T14:29:32.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-06-22T17:47:57.000Z (10 months ago)
- Last Synced: 2024-06-23T01:06:31.301Z (10 months ago)
- Language: Python
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-useful-projects - <img src="https://icon.horse/icon/github.com" height="20px" align="center"/>/richiehowelll/cat-lock - Lock keyboard from cat (Other / Other)
- awesome-useful-projects - <img src="https://icon.horse/icon/github.com" height="20px" align="center"/>/richiehowelll/cat-lock - Lock keyboard from cat (Jump To / Other)
README
# CatLock
CatLock is a simple utility designed to prevent accidental keyboard input, particularly when your feline friend decides to grace your workspace.
Currently only supported on **Windows**## Features
- Lock your keyboard with a hotkey (Ctrl + L).
- See a semi-transparent overlay indicating the keyboard is locked, allowing uninterrupted viewing.
- Unlock the keyboard by clicking on the overlay.
- Access configuration options via a convenient system tray menu:
- Adjust overlay opacity to suit your preferences.
- Enable or disable system notifications when the keyboard is locked.
## Build an executable
```bash
pip install pyinstaller
``````bash
pyinstaller --onefile --add-data="./resources/img/icon.ico:./resources/img/" --add-data="./resources/img/icon.png:./resources/img/" --add-data="./resources/config/config.json:./resources/config/" --icon="./resources/img/icon.ico" --hidden-import plyer.platforms.win.notification --noconsole --name="CatLock" "./src/main.py"
```
## Caveats
- Relies on https://github.com/boppreh/keyboard/ which only has full support for Windows
- OS bound hotkeys take precedence such as `ctrl+alt+del` (this way you don't get locked out if something goes wrong)## Support
If you found this project helpful or want to support my work, consider buying me a coffee!Your contributions will help maintain and improve this project. Thank you!
## Tested by:
![]()