mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #986] [MERGED] Feature: Allow new windows to start as floating and be tiled manually by the user #1160
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?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/986
Author: @alex-ds13
Created: 9/4/2024
Status: ✅ Merged
Merged: 10/11/2024
Merged by: @LGUG2Z
Base:
master← Head:feature/new-window-float-behaviour📝 Commits (10+)
17ea1e6feat(wm): separate floating and ignored apps8b34449feat(wm): allow ws moves of floating apps7d8e2adrefactor(wm): float_rules > ignore_rules w/ compatd68346afix(borders): no redraws on floating win title changea93e937fix(borders): update on floating win drag68e9365fix(borders): send notif on ignored hwnd events0e8dc85feat(wm): add new float override option30bdaf3feat(cli): add command for new optionToggleFloatOverrideb7bedcefeat(wm): add window_container_behaviour and float_override to workspaces221e4eafeat(cli): add commands for workspace new window behaviour and float_override📊 Changes
15 files changed (+602 additions, -205 deletions)
View changed files
📝
komorebi/src/border_manager/mod.rs(+142 -8)📝
komorebi/src/core/config_generation.rs(+12 -11)📝
komorebi/src/core/mod.rs(+20 -2)📝
komorebi/src/lib.rs(+2 -2)📝
komorebi/src/monitor.rs(+72 -47)📝
komorebi/src/monitor_reconciliator/mod.rs(+3 -3)📝
komorebi/src/process_command.rs(+42 -12)📝
komorebi/src/process_event.rs(+71 -38)📝
komorebi/src/reaper.rs(+1 -1)📝
komorebi/src/static_config.rs(+71 -14)📝
komorebi/src/window.rs(+32 -7)📝
komorebi/src/window_manager.rs(+81 -26)📝
komorebi/src/workspace.rs(+27 -28)📝
komorebi/src/workspace_reconciliator.rs(+1 -1)📝
komorebic/src/main.rs(+25 -5)📄 Description
This PR was created as requested on discord by the user DemitriX:
https://discord.com/channels/898554690126630914/1280256277104033833
This PR introduces a new option ("Float") to
window_container_behaviour, which makes it so every window opened, shown or uncloaked will be set to floating by default, but it won't be ignored. It will be added to the floating_windows of the workspace, meaning that the user can later tile that window withtoggle-floatcommand.This allows the users to have all windows open as floating and then manually tile the ones they want.
The existing command
toggle-window-container-behaviourwas deprecated and two new ones were added instead:cycle-window-container-behaviour: cycles through all the options using thenextandpreviousargumentswindow-container-behaviour: allows setting the behaviour directly using the arguments "create", "append" or "float"🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.