improved documentation of messagereceiver module
This commit is contained in:
parent
adbba9bf9a
commit
01cde70e14
1 changed files with 11 additions and 0 deletions
|
@ -5,6 +5,17 @@ Displays the message that's received via unix socket.
|
||||||
|
|
||||||
Parameteres:
|
Parameteres:
|
||||||
* messagereceiver : Unix socket address (e.g: /tmp/bumblebee_messagereceiver.sock)
|
* messagereceiver : Unix socket address (e.g: /tmp/bumblebee_messagereceiver.sock)
|
||||||
|
|
||||||
|
Example:
|
||||||
|
The following examples assume that /tmp/bumblebee_messagereceiver.sock is used as unix socket address.
|
||||||
|
|
||||||
|
In order to send the string "I bumblebee-status" to your status bar, use the following command:
|
||||||
|
echo -e '{"message":"I bumblebee-status", "state": ""}' | socat unix-connect:/tmp/bumblebee_messagereceiver.sock STDIO
|
||||||
|
|
||||||
|
In order to highlight the text, the state variable can be used:
|
||||||
|
echo -e '{"message":"I bumblebee-status", "state": "warning"}' | socat unix-connect:/tmp/bumblebee_messagereceiver.sock STDIO
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import core.module
|
import core.module
|
||||||
|
|
Loading…
Reference in a new issue