diff options
| -rw-r--r-- | niri-config/src/lib.rs | 3 | ||||
| -rw-r--r-- | niri-ipc/src/lib.rs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index 4b597f99..56bff592 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -1739,6 +1739,9 @@ impl From<niri_ipc::Action> for Action { id: Some(id), write_to_disk, } => Self::ScreenshotWindowById { id, write_to_disk }, + niri_ipc::Action::ToggleKeyboardShortcutsInhibit {} => { + Self::ToggleKeyboardShortcutsInhibit + } niri_ipc::Action::CloseWindow { id: None } => Self::CloseWindow, niri_ipc::Action::CloseWindow { id: Some(id) } => Self::CloseWindowById(id), niri_ipc::Action::FullscreenWindow { id: None } => Self::FullscreenWindow, diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs index fb90dbe7..827cb5c8 100644 --- a/niri-ipc/src/lib.rs +++ b/niri-ipc/src/lib.rs @@ -212,6 +212,8 @@ pub enum Action { #[cfg_attr(feature = "clap", arg(short = 'd', long, action = clap::ArgAction::Set, default_value_t = true))] write_to_disk: bool, }, + /// Enable or disable the keyboard shortcuts inhibitor (if any) for the focused window. + ToggleKeyboardShortcutsInhibit {}, /// Close a window. #[cfg_attr(feature = "clap", clap(about = "Close the focused window"))] CloseWindow { |
