Documentation ¶
Index ¶
Constants ¶
View Source
const EYE = "" // U+f06e
EYE is a unicode eye
View Source
const MaxEyes = 5
MaxEyes is the max number of eyes allowed in the waybar applet
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Eyes ¶
type Eyes struct { Text string `json:"text"` Tooltip string `json:"tooltip"` Class string `json:"class"` Count int `json:"count"` Faces int `json:"faces"` Debug bool `json:"-"` }
Eyes struct
func (*Eyes) GetJSONOutput ¶
GetJSONOutput return the waybar json struct
func (*Eyes) PrepareWaybarOutput ¶
func (eyes *Eyes) PrepareWaybarOutput()
PrepareWaybarOutput prepare the class and text for waybar output
func (*Eyes) SignalHandler ¶
func (eyes *Eyes) SignalHandler()
SignalHandler manage signal SIGUSR1 for Reset()
func (*Eyes) WriteJSONOutput ¶
WriteJSONOutput write the output as file
Click to show internal directories.
Click to hide internal directories.