From 6c4d01c8df30edf35569d42287de2236439c5d9a Mon Sep 17 00:00:00 2001 From: AlbertoRivera Date: Sun, 23 Mar 2025 00:12:59 -0600 Subject: [PATCH 1/2] added minimized state --- CHANGELOG.md | 1 + README.md | 1 + src/help.rs | 1 + src/templates.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a72e56d..baec878 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Next Release (TBD) Added support for `no_border` to `windowstate` +Added support for `minimized` to `windowstate` ## v0.2.1 (2023-11-23) diff --git a/README.md b/README.md index 21909db..f98b33b 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ These commands either take a window-id argument, or use the window stack. - shaded - demands_attention - no_border + - minimized - MISSING: - modal - sticky diff --git a/src/help.rs b/src/help.rs index f112486..9ed7ee1 100644 --- a/src/help.rs +++ b/src/help.rs @@ -145,6 +145,7 @@ Window Action Commands: SHADED - rolls the window up DEMANDS_ATTENTION - marks window urgent or needing attention NO_BORDER - window has no border + MINIMIZED - set minimized state, can toggle between minimize or maximize. get_desktop_for_window [WINDOW] Output the desktop number that a window is on. diff --git a/src/templates.rs b/src/templates.rs index 00502f6..2e7b220 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -225,6 +225,7 @@ pub const WINDOWSTATE_PROPERTIES: phf::Map<&'static str, &'static str> = phf::ph "shaded" => "shade", "demands_attention" => "demandsAttention", "no_border" => "noBorder", + "minimized" => "minimized", }; pub const STEP_GLOBAL_ACTION: &str = r#" From 04912d11c5c8cb5d1cf88ad54f57ee712d62fc8b Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Thu, 27 Mar 2025 11:09:49 +0800 Subject: [PATCH 2/2] Update help.rs: tab -> space --- src/help.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/help.rs b/src/help.rs index 9ed7ee1..1c7ffad 100644 --- a/src/help.rs +++ b/src/help.rs @@ -145,7 +145,7 @@ Window Action Commands: SHADED - rolls the window up DEMANDS_ATTENTION - marks window urgent or needing attention NO_BORDER - window has no border - MINIMIZED - set minimized state, can toggle between minimize or maximize. + MINIMIZED - set minimized state, can toggle between minimize or maximize. get_desktop_for_window [WINDOW] Output the desktop number that a window is on.