[PR #769] [MERGED] feat: Minimize focused window option for launcher #7958

Closed
opened 2026-05-23 02:56:15 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/769
Author: @pachliopta
Created: 11/10/2024
Status: Merged
Merged: 11/24/2024
Merged by: @JakeStanger

Base: masterHead: minimize


📝 Commits (1)

  • 64b953c feat(launcher): add option to minimize window if focused

📊 Changes

6 files changed (+58 additions, -7 deletions)

View changed files

📝 docs/modules/Launcher.md (+1 -0)
📝 src/clients/wayland/mod.rs (+15 -0)
📝 src/clients/wayland/wlr_foreign_toplevel/handle.rs (+5 -0)
📝 src/clients/wayland/wlr_foreign_toplevel/mod.rs (+9 -0)
📝 src/modules/launcher/item.rs (+12 -5)
📝 src/modules/launcher/mod.rs (+16 -2)

📄 Description

This PR adds a new config option minimize_focused to the launcher module, which when set to true will minimize the currently focused window if its icon is clicked. If there is more than a single window open of that particular application the normal focus behavior will occur.

I haven't written much rust before, but hopefully it's relatively problem free!

Resolves #658


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JakeStanger/ironbar/pull/769 **Author:** [@pachliopta](https://github.com/pachliopta) **Created:** 11/10/2024 **Status:** ✅ Merged **Merged:** 11/24/2024 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `minimize` --- ### 📝 Commits (1) - [`64b953c`](https://github.com/JakeStanger/ironbar/commit/64b953ce5ed8c328e9f78aa676ec2937adeb1c62) feat(launcher): add option to minimize window if focused ### 📊 Changes **6 files changed** (+58 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/modules/Launcher.md` (+1 -0) 📝 `src/clients/wayland/mod.rs` (+15 -0) 📝 `src/clients/wayland/wlr_foreign_toplevel/handle.rs` (+5 -0) 📝 `src/clients/wayland/wlr_foreign_toplevel/mod.rs` (+9 -0) 📝 `src/modules/launcher/item.rs` (+12 -5) 📝 `src/modules/launcher/mod.rs` (+16 -2) </details> ### 📄 Description This PR adds a new config option `minimize_focused` to the launcher module, which when set to true will minimize the currently focused window if its icon is clicked. If there is more than a single window open of that particular application the normal focus behavior will occur. I haven't written much rust before, but hopefully it's relatively problem free! Resolves #658 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-23 02:56:15 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#7958
No description provided.