Blinking Morse code on Thinkpad LEDs
Project description
TMorse
Run this code to blink your ThinkPad LED with a hidden mysterious 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 its location is defined by default to be /proc/acpi/ibm/led
.
echo "This is a test" | sudo tmorse --stdin
→ Read the data from standard input.
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.7.tar.gz
.
File metadata
- Download URL: tmorse-0.1.7.tar.gz
- Upload date:
- Size: 17.0 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 | 9abec94908694bf60d3b12ad436910bf506dd97d07c0df034e24f36c75c1ffb5 |
|
MD5 | 957a45ca65f612fc306fbb245ab013b2 |
|
BLAKE2b-256 | cc0e185a23b9a93686aeb080a112ffe4567ff3f585d2ad5e45ff1fece2a34a6d |
File details
Details for the file tmorse-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: tmorse-0.1.7-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 | 728abc9c22a9dba67b8a334f9e029285bf4522b82c04b9b567e17bd9ecae89ae |
|
MD5 | c10cc6de39dd5247f483a21bfbddaf38 |
|
BLAKE2b-256 | 4111e12a516e32df4920734553a4e985f1c948f387e933c33f95effa06800706 |