aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsodiboo <37938646+sodiboo@users.noreply.github.com>2025-03-31 07:00:10 +0200
committerGitHub <noreply@github.com>2025-03-31 05:00:10 +0000
commit36489f1daae47dc81645f4f188032b7e98a1e81e (patch)
treea64851949eedebb21bf5ea566917958b6b96741d
parentb2c34e7fe94a12a65083ac73759672427ea2ccbf (diff)
downloadniri-36489f1daae47dc81645f4f188032b7e98a1e81e.tar.gz
niri-36489f1daae47dc81645f4f188032b7e98a1e81e.tar.bz2
niri-36489f1daae47dc81645f4f188032b7e98a1e81e.zip
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 <yalterz@gmail.com>
-rw-r--r--niri-config/src/lib.rs3
-rw-r--r--niri-ipc/src/lib.rs2
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 {