Blinking Morse code on Thinkpad LEDs
Project description
TMorse
Run this code to blink your ThinkPad LED based on a Morse code!
Compatible with python3.9+. No third-party library is required, implemented in pure python.
Make sure that you have required permissions to write to led acpi file descriptor.
Take a look
Installation
Installation of tmorse is a little complicated due to need of superuser access.
Recommended way is using pipx.
First, install pipx:
sudo apt install pipx
Then install tmorse by using command below:
sudo -E env "PATH=$PATH" pipx install --python python3.9 tmorse
P.S: TMorse is supported by python3.9+.
Usage
sudo tmorse
→ Insert input manually, and it will blink your LED, which is located by default values.
echo "This is a test" | sudo tmorse --stdin
→ Insert input manually, and it will blink your LED, which is located by default values.
sudo tmorse -c custom_codes.json
→ Encode characters to Morse based on your custom codes, although you should follow the protocol. (e.g. {"م": "--"})
sudo tmorse --on-command 2 --off-command 0 -l "/proc/acpi/ibm/kbdlight" -m 0.7 --default-led-status OFF
→ Show the Morse code by keyboard's backlit blinking.
- check
sudo tmorse --help
for more info.
Contributing
Written by: Mahyar Mahdavi <Mahyar@Mahyar24.com>.
License: GNU GPLv3.
Source Code: <https://github.com/mahyar24/TMorse>.
PyPI: <https://pypi.org/project/TMorse/>.
Reporting Bugs and PRs are welcomed. :)
Inspired by
This Project is based and inspired by "Ritvars Timermanis" thinkmorse. Take a look at: thinkmorse.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tmorse-0.1.6.tar.gz
.
File metadata
- Download URL: tmorse-0.1.6.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dfe52857d0917257096962b3fcf53cff61f2d6af6a527ef51c85ebde1aa64c7 |
|
MD5 | e5eecd5842613513479ae99e7fc786aa |
|
BLAKE2b-256 | 3cf8b3023b69cedf19d7aecff454e3b00e9cd45de9f917c189ad8ce19aed50df |
File details
Details for the file tmorse-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: tmorse-0.1.6-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a22b4ee998664ea79f582b4e3b61e663d1df9ba4aa2008ca9df723701bad0423 |
|
MD5 | 6e5700b4fa4bf094ebbee09e90eab5ac |
|
BLAKE2b-256 | 9a2b44c66950fc5252ca33648b5dbfac247854a0109ca96b7ff10a23ea8296ca |