Hyprland
Hyprland copied to clipboard
Feat Req: Window swallowing
Would it be possible to have the window swallowing feature in Hyprland?
What is window swallowing?
Whenever a GUI app is launched through the terminal, the compositor/WM will instantly hide the terminal window and spawn the GUI app window in its place.
A basic implementation
We can have a window rule for marking a window as a terminal application. Then, whenever such a process tries to spawn another window, we can simply have the new window swallow the terminal window.
Demo
https://www.youtube.com/watch?v=92uo5OBOKfY
Personally I use grouped/tabbed as a solution to window swallowing. However as that solution is not completely perfect, I would prefer proper window swallowing as well.
If i want to open current directory in vscode while i'm in a terminal, i use an alias that runs code . & disown && exit
VSCode opens, my terminal closes. Is it what you're looking for ?
a97621b1cb203b0e3a7dd07d88c5422b798cbfd8