forge
Explore
Log in

Don't you dare go Hollow

add toggle-keyboard-shortcuts-inhibit to CLI/IPC (#1366)

Browse files at this commit

36489f1daae47dc81645f4f188032b7e98a1e81eUnverifiedsodiboo and Ivan MolodetskikhParent: b2c34e7
* 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

---------
niri-config/src/lib.rsmodified+3 -0
@@ -1739,6 +1739,9 @@ impl From<niri_ipc::Action> for Action {
17391739 id: Some(id),
17401740 write_to_disk,
17411741 } => Self::ScreenshotWindowById { id, write_to_disk },
1742+ niri_ipc::Action::ToggleKeyboardShortcutsInhibit {} => {
1743+ Self::ToggleKeyboardShortcutsInhibit
1744+ }
17421745 niri_ipc::Action::CloseWindow { id: None } => Self::CloseWindow,
17431746 niri_ipc::Action::CloseWindow { id: Some(id) } => Self::CloseWindowById(id),
17441747 niri_ipc::Action::FullscreenWindow { id: None } => Self::FullscreenWindow,
niri-ipc/src/lib.rsmodified+2 -0
@@ -212,6 +212,8 @@ pub enum Action {
212212 #[cfg_attr(feature = "clap", arg(short = 'd', long, action = clap::ArgAction::Set, default_value_t = true))]
213213 write_to_disk: bool,
214214 },
215+ /// Enable or disable the keyboard shortcuts inhibitor (if any) for the focused window.
216+ ToggleKeyboardShortcutsInhibit {},
215217 /// Close a window.
216218 #[cfg_attr(feature = "clap", clap(about = "Close the focused window"))]
217219 CloseWindow {