Skip to content

jeremybobbin/sthkd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sthkd - simple terminal hotkey daemon
-------------------------------------
	- bmac: the byte macro processor
	- itty: the TTY interpreter


Examples
--------

Record terminal input to keys.log:

	itty tee key.log

Control+P to open dmenu(1):

	(cat > config) <<- EOF
	^P
		dmenu_run 2>/dev/null 1>&2 \n
	EOF

	pipe=$(mktemp -u)
	mkfifo $pipe
	sh $pipe & $!=sh

	# `-o` option to bmac sends matching keystrokes to $pipe
	itty bmac -o $pipe config

Or the sthkd equivalent:

	(cat > config) <<- EOF
	^P
		dmenu_run 2>/dev/null 1>&2 \n
	EOF

	sthkd config

About

Simple Terminal Hotkey Daemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published