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 --helpfor 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
Metadata
Release files for tmorse 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tmorse-0.1.7.tar.gz | 17.0 kB | Without provenance | Details for tmorse-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tmorse-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for tmorse-0.1.7-py3-none-any.whl |
Total release size: 35.2 kB
Release files / tmorse-0.1.7.tar.gz
| Download URL | tmorse-0.1.7.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9abec94908694bf60d3b12ad436910bf506dd97d07c0df034e24f36c75c1ffb5
|
|
BLAKE2b-256 checksum How to use checksums |
cc0e185a23b9a93686aeb080a112ffe4567ff3f585d2ad5e45ff1fece2a34a6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-41-generic
|
Release files / tmorse-0.1.7-py3-none-any.whl
| Download URL | tmorse-0.1.7-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
728abc9c22a9dba67b8a334f9e029285bf4522b82c04b9b567e17bd9ecae89ae
|
|
BLAKE2b-256 checksum How to use checksums |
4111e12a516e32df4920734553a4e985f1c948f387e933c33f95effa06800706
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-41-generic
|
Security for tmorse 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.