Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rbino/softmech
Mechanical keyboard for when you don't have a mechanical keyboard
https://github.com/rbino/softmech
Last synced: about 2 months ago
JSON representation
Mechanical keyboard for when you don't have a mechanical keyboard
- Host: GitHub
- URL: https://github.com/rbino/softmech
- Owner: rbino
- License: gpl-3.0
- Created: 2015-03-04T01:26:03.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-07-20T12:43:09.000Z (over 2 years ago)
- Last Synced: 2024-10-15T02:35:23.680Z (2 months ago)
- Language: Python
- Homepage:
- Size: 485 KB
- Stars: 28
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
softmech
=====
This is a little Python script that plays a random sound whenever a key is pressed/released. Specifically, I sampled my CMStorm Quickfire TK with Blue Cherry switches.
Use it to annoy people when you don't have a mechanical keyboard with you.
### Dependencies
To install dependencies (on Debian Jessie):
```sh
$ sudo apt-get install python-xlib python-sdl2
```On Ubuntu <= 14.10 `python-sdl2` is not in the repo, so:
```sh
$ sudo apt-get install python-xlib pip libsdl2-mixer-2.0-0
$ sudo pip install PySDL2
```
### Launching
```sh
$ ./softmech.py
```
### Additional sounds
If you want to add your own sounds just put them in a folder and change the `sounddir` variable.
Sounds to be played on KeyDown must end with "down.wav", sounds to be played on KeyUp must end with "up.wav"