Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 784 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 784 Bytes

SHORTSIG

a tool that executes routines from a TCP connection

Installation

From Source

clone and go build

Config

# ~/.config/shortsig/config.toml

port = 3003

[routines.poweroff]
linux = "poweroff"

[routines.reboot]
linux = "reboot"

[routines.suspend]
linux = "systemctl suspend"

[routines.lock]
linux = "loginctl lock-session $XDG_SESSION_ID"

[routines.sleep]
linux = "sleep 2"

[routines.ls]
linux = "ls"
darwin = "ls"
windows = "dir"

Usage

launch the server
shortsig

send it something through tcp
nc localhost 3003
exec lock

WIP

this project is a work in progress, there's a lot left to be desired such as