-
Notifications
You must be signed in to change notification settings - Fork 0
fix: restore minimized windows to current workspace #773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -261,7 +261,7 @@ bind = $mod, E, exec, sh -c 'rofimoji --action copy --skin-tone neutral && sleep | |||||
| # Window Management | ||||||
| # ============================================================================= | ||||||
| bind = $mod, W, movetoworkspacesilent, special:minimized | ||||||
| bind = $mod SHIFT, W, togglespecialworkspace, minimized | ||||||
| bind = $mod SHIFT, W, exec, hyprctl -j clients | jq -r '.[] | select(.workspace.name == "special:minimized") | .address' | xargs -I{} hyprctl dispatch movetoworkspacesilent e+0,address:{} | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add When no windows are in Proposed fix-bind = $mod SHIFT, W, exec, hyprctl -j clients | jq -r '.[] | select(.workspace.name == "special:minimized") | .address' | xargs -I{} hyprctl dispatch movetoworkspacesilent e+0,address:{}
+bind = $mod SHIFT, W, exec, hyprctl -j clients | jq -r '.[] | select(.workspace.name == "special:minimized") | .address' | xargs -r -I{} hyprctl dispatch movetoworkspacesilent e+0,address:{}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| bind = $mod, Q, killactive, | ||||||
| bind = $mod SHIFT, F, togglefloating, | ||||||
| bind = CTRL ALT SHIFT SUPER, F, exec, hyprctl --batch "dispatch movetoworkspace empty; dispatch fullscreen 0" | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better performance, you can use
hyprctl --batchto execute alldispatchcommands in a single process. The current implementation withxargs -I{}spawns a newhyprctlprocess for each minimized window, which can be inefficient if many windows are minimized.By generating all the dispatch commands with
jqand piping them to a singlehyprctl --batchcall, you can achieve the same result more efficiently.hyprctl --batchis designed for this purpose and will read the commands from standard input.