Skip to content

a daemon that executes routines from a TCP connection

Notifications You must be signed in to change notification settings

RaafatTurki/shortsig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a daemon that executes routines from a TCP connection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published