pub struct CustomKeyAction {
pub action: BindingAction,
pub modifiers: Vec<Modifier>,
pub key: Key,
pub command: String,
pub allow_on_lockscreen: bool,
}Expand description
A custom key binding that runs a shell command.
Fields§
§action: BindingActionThe keyboard event phase that triggers this binding.
modifiers: Vec<Modifier>The modifier keys required for this binding.
key: KeyThe XKB keysym name (e.g. Key::new("Return"), Key::new("a")).
command: StringThe shell command to execute.
allow_on_lockscreen: boolWhether the command may run while the session is locked (e.g. for media or brightness keys).
Trait Implementations§
Source§impl Clone for CustomKeyAction
impl Clone for CustomKeyAction
Source§fn clone(&self) -> CustomKeyAction
fn clone(&self) -> CustomKeyAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CustomKeyAction
impl Debug for CustomKeyAction
Auto Trait Implementations§
impl Freeze for CustomKeyAction
impl RefUnwindSafe for CustomKeyAction
impl Send for CustomKeyAction
impl Sync for CustomKeyAction
impl Unpin for CustomKeyAction
impl UnsafeUnpin for CustomKeyAction
impl UnwindSafe for CustomKeyAction
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