• Stars
    star
    939
  • Rank 48,667 (Top 1.0 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Type in Morse code by repeatedly slamming your laptop shut

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.

More Repositories

1

torrent-client

Tiny BitTorrent client written in Go
Go
1,606
star
2

browsertunnel

Surreptitiously exfiltrate data from the browser over DNS
Go
397
star
3

typing

An experimental interactive README experience!
Go
152
star
4

sounds

Turn images into sounds viewable on a spectrogram!
Processing
110
star
5

pyc-secret-lab

Python
62
star
6

projectordino

Play the Chrome T-Rex game by physically jumping
JavaScript
54
star
7

hn-friends

Highlight and tag your friends on Hacker News
JavaScript
44
star
8

marveloptics_malware

Deobfuscated + reverse engineered javascript malware
JavaScript
28
star
9

tty-countdown

TTY countdown timer inspired by tty-clock
Python
19
star
10

chrome-filesystem-timing

Detecting incognito mode by timing the Chrome FileSystem API
HTML
11
star
11

terminal-waifu

http://jse.li/terminal-waifu/
CSS
10
star
12

http-server

A minimal HTTP server implemented from scratch using Python sockets and threads
Python
9
star
13

dns

toy recursive DNS resolver that does its own parsing and socket communication, just for fun
Python
8
star
14

flag-dvd

HTML
6
star
15

lhp

LHP Hypertext Preprocessor - A Cloudflare Worker that lets you embed Lua code on a web page as if it were PHP
C
5
star
16

miraculousladybot

Logs tumblr fanfictions to a psql database and generates fanfictions using markov chains
Python
5
star
17

arXiv_dump

Download all arXiv papers
Shell
5
star
18

luks_backdoor

Places a backdoor on a Luks encrypted partition via an unprotected initramfs
Shell
5
star
19

omen

Markov chain library
Python
5
star
20

s-h-a-n-p-e-s

S H A N P E S
JavaScript
4
star
21

terminal-twilight-zone

Play "You've just crossed over into the twilight zone" upon entering a git repository.
Shell
4
star
22

wordle-reverse

Draw pictures using the squares in Wordle.
HTML
4
star
23

ohio

πŸ™ˆ
Python
3
star
24

electron-store-encryption

Breaking electron-store's encryption
JavaScript
3
star
25

dotfiles

i3 config
Shell
3
star
26

tictactoe-powerpoint

Play tic-tac-toe in PowerPoint
Python
3
star
27

notebooks

Jupyter Notebook
2
star
28

rgb

ruth gader binsburg
HTML
1
star
29

speedy

https://jse.li/speedy/
JavaScript
1
star
30

data-structures

Homework code for a data structures course
Java
1
star
31

protohackers

Go
1
star
32

dear_zack

an open letter to my brother
HTML
1
star
33

projectorface

this code is not great
Python
1
star
34

strange-autoblog

Posts to a blog after each TF2 session detailing the number of kills you got on a strange weapon
Python
1
star