Skip to main content

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

LED Backlit Decode

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

GPLv3

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)

Source distribution for tmorse 0.1.7
File Size Uploaded
tmorse-0.1.7.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tmorse 0.1.7
File Interpreter ABI Platform
tmorse-0.1.7-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page