Documentation
¶
Index ¶
Constants ¶
View Source
const SensorSocket = "/tmp/pillow.sock"
SensorSocket is the default Unix domain socket path for the sensor daemon.
Variables ¶
This section is empty.
Functions ¶
func SensordRunning ¶
SensordRunning checks if the sensor daemon is accessible.
Types ¶
type AccelClient ¶
type AccelClient struct {
// contains filtered or unexported fields
}
AccelClient connects to pillowsensord and emits slap interrupts.
func NewAccelClient ¶
func NewAccelClient(socketPath string) *AccelClient
NewAccelClient creates a client for the sensor daemon.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler processes interrupts and maps them to agent actions.
func NewHandler ¶
NewHandler creates an interrupt handler.
type KeyboardListener ¶
type KeyboardListener struct{}
KeyboardListener listens for keyboard interrupt signals.
func NewKeyboardListener ¶
func NewKeyboardListener() *KeyboardListener
NewKeyboardListener creates a keyboard interrupt listener.
type SensordConfig ¶
type SensordConfig struct {
Sensitivity float64 `json:"sensitivity"`
CooldownMs int `json:"cooldown_ms"`
}
SensordConfig is sent from pillow to pillowsensord to adjust settings.
Click to show internal directories.
Click to hide internal directories.