pub enum ShortcutAction {
Show 23 variants
LaunchLauncher,
LaunchTerminal,
LaunchFileManager,
CloseWindow,
MinimizeWindow,
MaximizeWindow,
ToggleFullscreen,
SwitchWorkspace(u8),
MoveToWorkspace(u8),
SwitchNextWindow,
SwitchPrevWindow,
Screenshot,
ScreenshotWindow,
LockScreen,
Logout,
SnapLeft,
SnapRight,
Copy,
Paste,
Cut,
Undo,
Redo,
Custom(u16),
}Expand description
Actions that can be triggered by keyboard shortcuts.
Variants§
LaunchLauncher
Launch the application launcher.
LaunchTerminal
Launch terminal.
LaunchFileManager
Launch file manager.
CloseWindow
Close the focused window.
MinimizeWindow
Minimize the focused window.
MaximizeWindow
Maximize/restore the focused window.
ToggleFullscreen
Toggle fullscreen on focused window.
SwitchWorkspace(u8)
Switch to workspace N (0-based).
MoveToWorkspace(u8)
Move window to workspace N (0-based).
SwitchNextWindow
Switch to next window (Alt+Tab).
SwitchPrevWindow
Switch to previous window (Alt+Shift+Tab).
Screenshot
Take a screenshot.
ScreenshotWindow
Take a screenshot of the focused window.
LockScreen
Lock the screen.
Logout
Log out.
SnapLeft
Snap window left.
SnapRight
Snap window right.
Copy
Copy (Ctrl+C).
Paste
Paste (Ctrl+V).
Cut
Cut (Ctrl+X).
Undo
Undo (Ctrl+Z).
Redo
Redo (Ctrl+Shift+Z or Ctrl+Y).
Custom(u16)
Custom action identified by ID.
Trait Implementations§
Source§impl Clone for ShortcutAction
impl Clone for ShortcutAction
Source§fn clone(&self) -> ShortcutAction
fn clone(&self) -> ShortcutAction
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShortcutAction
impl Debug for ShortcutAction
Source§impl PartialEq for ShortcutAction
impl PartialEq for ShortcutAction
impl Copy for ShortcutAction
impl Eq for ShortcutAction
impl StructuralPartialEq for ShortcutAction
Auto Trait Implementations§
impl Freeze for ShortcutAction
impl RefUnwindSafe for ShortcutAction
impl Send for ShortcutAction
impl Sync for ShortcutAction
impl Unpin for ShortcutAction
impl UnwindSafe for ShortcutAction
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)