toggle

command module
v0.0.0-...-e9e7aac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 14 Imported by: 0

README

toggle

toggle is a go tool that acts as a toggle for any program by using a lockfile.

you run it with a program like toggle myscript.sh - it creates a lockfile (by hash or name with --name), starts the program, and saves its PID to a lockfile

next time you run the same toggle, it finds the lockfile, reads the PID, and sends it a signal (default SIGTERM, or custom with --signal)

good for hotkeys that launch infinite loop scripts (like macros) - press once to start, press again to terminate

go install github.com/notwithering/toggle@latest

licenses

this project uses the following dependancies with the licenses as noted:

each dependancy retains its respective license. for more details refer to their official documentation or source code

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL