Skip to content

The daemon redirects sxhkd status from named pipe to unix domain socket for accessing from multiple clients.

License

Notifications You must be signed in to change notification settings

piutranq/sxhkd-statusd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sxhkd-statusd

4 terminals are showing sxhkd status

The daemon redirects sxhkd status from named pipe to unix domain socket for accessing from multiple clients.

Installation

  • Just make and make install. By default, the binary placed at /usr/local/bin.
git clone https://github.com/piutranq/sxhkd-statusd
cd ./sxhkd-statusd
make
sudo make install
  • To uninstall, use make uninstall

Usage

sxhkd-statusd [options] [source]

source

The sxhkd status pipe to read.

Make sure the sxhkd-statusd is the only process is reading the pipe.

The clients can access sxhkd-statusd by connect to [source].sxhkd-statusd

options

  • --help|-h: Show the help message and exit.
  • --log|-l: Set log level as following argument. The default value is info
    • error: Log only the error messages.
    • info: Log the error messages and some additional information, such as open/closing file descriptor
    • verbose: Log more information, such as sxhkd event
    • silent: Do not log any messages, including the error messages.

example

# Launch the daemon
sxhkd-statusd -l error /run/user/$UID/sxhkd.fifo

# Connect to the daemon from a client process
socat UNIX-CONNECT:/run/user/$UID/sxhkd.fifo.sxhkd-statusd -

About

The daemon redirects sxhkd status from named pipe to unix domain socket for accessing from multiple clients.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published