Skip to content
Projects

veggiedefender/open-and-shut has 2,433 GitHub stars and 26 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 20:14 UTC. Last push 2020-04-28.

How these counts are measured

Type in Morse code by repeatedly slamming your laptop shut

What you can do

  • Use a battle-tested encoding trusted by pilots, submariners, and amateur radio nerds
  • Type at 100+ words per minute hour
  • Innovative SIGTERM-based concurrency control. Semaphores who??
  • Closing your laptop now types the letter E instead of locking

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Open and Shut

Type in Morse code by repeatedly slamming your laptop shut

output

Features

  • Use a battle-tested encoding trusted by pilots, submariners, and amateur radio nerds
  • Type at 100+ words per minute hour
  • Innovative SIGTERM-based concurrency control. Semaphores who??
  • Closing your laptop now types the letter E instead of locking

Setup

Note: For wayland support, check out the wayland branch.

Dependencies

Installation

Clone this repository and copy files into /etc/acpi

git clone [email protected]:veggiedefender/open-and-shut.git
sudo cp morse_code_close.sh morse_code_open.sh morse_code_acpi.sh /etc/acpi/

Configure acpid

Acpid needs to know how and when to run our scripts. Create a file /etc/acpi/events/lm_lid with the following contents:

event=button/lid.*
action=/etc/acpi/morse_code_acpi.sh

Disable screen lock

Temporarily: Run systemd-inhibit --what=handle-lid-switch cat and press Ctrl+C when you're done.

Permanently: Add HandleLidSwitch=ignore to /etc/systemd/logind.conf and either run sudo systemctl restart systemd-logind.service (this will log you out), or reboot your computer.

Explore related projects