pub enum Request {
Show 63 variants
GetDevices,
SetMacro {
device_path: String,
macro_entry: MacroEntry,
},
ListMacros,
DeleteMacro {
name: String,
},
ReloadConfig,
LedSet {
device_path: String,
color: (u8, u8, u8),
},
RecordMacro {
device_path: String,
name: String,
capture_mouse: bool,
},
StopRecording,
TestMacro {
name: String,
},
GetStatus,
SaveProfile {
name: String,
},
LoadProfile {
name: String,
},
ListProfiles,
DeleteProfile {
name: String,
},
GenerateToken {
client_id: String,
},
Authenticate {
token: String,
},
ExecuteMacro {
name: String,
},
GrabDevice {
device_path: String,
},
UngrabDevice {
device_path: String,
},
GetDeviceProfiles {
device_id: String,
},
ActivateProfile {
device_id: String,
profile_name: String,
},
DeactivateProfile {
device_id: String,
},
GetActiveProfile {
device_id: String,
},
GetActiveRemaps {
device_path: String,
},
ListRemapProfiles {
device_path: String,
},
ActivateRemapProfile {
device_path: String,
profile_name: String,
},
DeactivateRemapProfile {
device_path: String,
},
GetDeviceCapabilities {
device_path: String,
},
GetActiveLayer {
device_id: String,
},
SetLayerConfig {
device_id: String,
layer_id: usize,
config: LayerConfigInfo,
},
ActivateLayer {
device_id: String,
layer_id: usize,
mode: LayerMode,
},
ListLayers {
device_id: String,
},
SetAnalogSensitivity {
device_id: String,
sensitivity: f32,
},
GetAnalogSensitivity {
device_id: String,
},
SetAnalogResponseCurve {
device_id: String,
curve: String,
},
GetAnalogResponseCurve {
device_id: String,
},
SetAnalogDeadzone {
device_id: String,
percentage: u8,
},
GetAnalogDeadzone {
device_id: String,
},
SetAnalogDeadzoneXY {
device_id: String,
x_percentage: u8,
y_percentage: u8,
},
GetAnalogDeadzoneXY {
device_id: String,
},
SetAnalogOuterDeadzoneXY {
device_id: String,
x_percentage: u8,
y_percentage: u8,
},
GetAnalogOuterDeadzoneXY {
device_id: String,
},
SetAnalogDpadMode {
device_id: String,
mode: String,
},
GetAnalogDpadMode {
device_id: String,
},
SetLedColor {
device_id: String,
zone: LedZone,
red: u8,
green: u8,
blue: u8,
},
GetLedColor {
device_id: String,
zone: LedZone,
},
GetAllLedColors {
device_id: String,
},
SetLedBrightness {
device_id: String,
zone: Option<LedZone>,
brightness: u8,
},
GetLedBrightness {
device_id: String,
zone: Option<LedZone>,
},
SetLedPattern {
device_id: String,
pattern: LedPattern,
},
GetLedPattern {
device_id: String,
},
FocusChanged {
app_id: String,
window_title: Option<String>,
},
RegisterHotkey {
device_id: String,
binding: HotkeyBinding,
},
ListHotkeys {
device_id: String,
},
RemoveHotkey {
device_id: String,
key: String,
modifiers: Vec<String>,
},
SetAutoSwitchRules {
rules: Vec<AutoSwitchRule>,
},
GetAutoSwitchRules,
GetAnalogCalibration {
device_id: String,
layer_id: usize,
},
SetAnalogCalibration {
device_id: String,
layer_id: usize,
calibration: AnalogCalibrationConfig,
},
SubscribeAnalogInput {
device_id: String,
},
UnsubscribeAnalogInput {
device_id: String,
},
SetMacroSettings(MacroSettings),
GetMacroSettings,
}Expand description
IPC Requests from GUI to Daemon
Variants§
GetDevices
List all available devices
SetMacro
Set a macro for a device
ListMacros
List all configured macros
DeleteMacro
Delete a macro by name
ReloadConfig
Reload configuration from disk
LedSet
Set LED color for a device
RecordMacro
Start recording a macro
StopRecording
Stop recording a macro
TestMacro
Test a macro execution
GetStatus
Get daemon status and version
SaveProfile
Save current macros to a profile
LoadProfile
Load macros from a profile
ListProfiles
List available profiles
DeleteProfile
Delete a profile
GenerateToken
Generate an authentication token
Authenticate
Authenticate with a token
ExecuteMacro
Execute a macro by name
GrabDevice
Grab a device exclusively for input interception
UngrabDevice
Release exclusive access to a device
GetDeviceProfiles
Get available profiles for a specific device
ActivateProfile
Activate a remap profile for a device
DeactivateProfile
Deactivate the current remap profile for a device
GetActiveProfile
Get the currently active profile for a device
GetActiveRemaps
Query active remap configuration for a device
ListRemapProfiles
List available remap profiles for a device
ActivateRemapProfile
Activate a remap profile for a device
DeactivateRemapProfile
Deactivate current remap profile for a device
GetDeviceCapabilities
Get device capabilities and features
GetActiveLayer
Get the currently active layer for a device
SetLayerConfig
Set layer configuration for a device
ActivateLayer
Activate a layer for a device with specified mode
ListLayers
List all configured layers for a device
SetAnalogSensitivity
Set analog sensitivity for a device
GetAnalogSensitivity
Get analog sensitivity for a device
SetAnalogResponseCurve
Set analog response curve for a device
GetAnalogResponseCurve
Get analog response curve for a device
SetAnalogDeadzone
Set analog deadzone for a device (both X and Y axes)
GetAnalogDeadzone
Get analog deadzone for a device (returns X-axis percentage)
SetAnalogDeadzoneXY
Set per-axis analog deadzone for a device
GetAnalogDeadzoneXY
Get per-axis analog deadzone for a device
SetAnalogOuterDeadzoneXY
Set per-axis outer deadzone (max clamp) for a device
GetAnalogOuterDeadzoneXY
Get per-axis outer deadzone for a device
SetAnalogDpadMode
Set D-pad emulation mode for a device
GetAnalogDpadMode
Get D-pad emulation mode for a device
SetLedColor
Set LED color for a specific zone
GetLedColor
Get LED color for a specific zone
GetAllLedColors
Get all LED colors for a device
SetLedBrightness
Set LED brightness for a device (global or per-zone)
GetLedBrightness
Get LED brightness for a device
SetLedPattern
Set LED pattern for a device
GetLedPattern
Get LED pattern for a device
FocusChanged
Notify daemon that window focus changed (for auto-profile switching)
RegisterHotkey
Register a global hotkey binding
ListHotkeys
List all registered hotkey bindings for a device
RemoveHotkey
Remove a hotkey binding
SetAutoSwitchRules
Set global auto-switch rules for profile switching
Fields
rules: Vec<AutoSwitchRule>GetAutoSwitchRules
Get all auto-switch rules
GetAnalogCalibration
Get analog calibration for a device and layer
SetAnalogCalibration
Set analog calibration for a device and layer
SubscribeAnalogInput
Subscribe to analog input updates for a device
UnsubscribeAnalogInput
Unsubscribe from analog input updates
SetMacroSettings(MacroSettings)
Set global macro timing and jitter settings
GetMacroSettings
Get current global macro settings