The daemon redirects sxhkd status from named pipe to unix domain socket for accessing from multiple clients.
- Just
make
andmake 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
sxhkd-statusd [options] [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
--help|-h
: Show the help message and exit.--log|-l
: Set log level as following argument. The default value isinfo
error
: Log only the error messages.info
: Log the error messages and some additional information, such as open/closing file descriptorverbose
: Log more information, such as sxhkd eventsilent
: Do not log any messages, including the error messages.
# 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 -