pub struct HotkeyBinding {
pub modifiers: Vec<String>,
pub key: String,
pub profile_name: String,
pub device_id: Option<String>,
pub layer_id: Option<usize>,
}Expand description
Global hotkey binding for manual profile switching
Defines a keyboard shortcut that triggers profile or layer activation. Hotkeys are checked at the daemon level before remap processing.
Fields§
§modifiers: Vec<String>Modifier keys (Ctrl, Alt, Shift, Super)
Accepted values: “ctrl”, “alt”, “shift”, “super” (case-insensitive)
key: StringTrigger key (number 1-9 for profile switching)
Common values: “1”-“9” for profile slots, or any key name like “f1”, “esc”
profile_name: StringProfile to activate when hotkey pressed
device_id: Option<String>Device to apply to (None = all devices)
If set, only this device_id (vendor:product format) will switch profiles.
layer_id: Option<usize>Layer to activate (None = profile default)
If set, activates the specified layer after switching profiles.
Trait Implementations§
Source§impl Clone for HotkeyBinding
impl Clone for HotkeyBinding
Source§fn clone(&self) -> HotkeyBinding
fn clone(&self) -> HotkeyBinding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HotkeyBinding
impl Debug for HotkeyBinding
Source§impl<'de> Deserialize<'de> for HotkeyBinding
impl<'de> Deserialize<'de> for HotkeyBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HotkeyBinding
impl PartialEq for HotkeyBinding
Source§impl Serialize for HotkeyBinding
impl Serialize for HotkeyBinding
impl StructuralPartialEq for HotkeyBinding
Auto Trait Implementations§
impl Freeze for HotkeyBinding
impl RefUnwindSafe for HotkeyBinding
impl Send for HotkeyBinding
impl Sync for HotkeyBinding
impl Unpin for HotkeyBinding
impl UnsafeUnpin for HotkeyBinding
impl UnwindSafe for HotkeyBinding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more