mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: CLI Command (hotkey) to send focussed window(s) to initial_workspace if one exists #439
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aleckslu on GitHub (Jul 27, 2024).
Describe the solution you'd like
Just an additional CLI command to send a window to its initial_workspace IF it's included in any "initial_workspace_rules".
Additionally, maybe another CLI command to send all windows back to their initial workspaces (even those not in the active workspace).
Describe alternatives you've considered
Only looked through existing CLI commands. I would imagine it can be possible with a very specific autohotkey script, but haven't gotten into learning ahk too much just yet.
Additional context
Just as an example, if i have:
for workspace
3And I am currently focused on the Discord window on workspace
2pressing my hotkey bound tokomorebic send-to-initial-workspacewill send Discord back to workspace3Pressing the hotkey when the focused window doesn't belong to any
initial_workspace_ruleswill just do nothing@alex-ds13 commented on GitHub (Jan 8, 2025):
@aleckslu There is now a new command
komorebic enforce-workspace-ruleswhich reapplies the initial workspace rules one more time again. This command applies to all windows that match an initial workspace rule.