From 36489f1daae47dc81645f4f188032b7e98a1e81e Mon Sep 17 00:00:00 2001 From: sodiboo <37938646+sodiboo@users.noreply.github.com> Date: Mon, 31 Mar 2025 07:00:10 +0200 Subject: add toggle-keyboard-shortcuts-inhibit to CLI/IPC (#1366) * add toggle-keyboard-shortcuts-inhibit to CLI/IPC missed it in ef8d5274b849fe0bd76ab7159765202ac98f7bbc or https://github.com/YaLTeR/niri/pull/630 or 0584dd2f1e82417bdabcc0d8cb20fddc2e8cc5e7 or whatever * Update niri-ipc/src/lib.rs --------- Co-authored-by: Ivan Molodetskikh --- niri-config/src/lib.rs | 3 +++ niri-ipc/src/lib.rs | 2 ++ 2 files changed, 5 insertions(+) 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 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 { -- cgit