WillPower3309 / swayfx

SwayFX: Sway, but with eye candy!
MIT License
1.32k stars 49 forks source link

Add "window swallowing" #286

Open notmentaloutlaw opened 5 months ago

notmentaloutlaw commented 5 months ago

Window managers like dwl, dwm, hyprland all include an option called window swallowing. It makes it so that if you were to spawn an application from a terminal for example (or another application) the new spawned application will replace the current one in view. However, if you close this application you will return back to the previous one. This can be set to only allow swallowing from a certain application (a terminal) or all applications.

It would be a very good feature for workflows.

ErikReider commented 5 months ago

Seems like something that can be done through IPC

notmentaloutlaw commented 5 months ago

how would I be able to do that?

ErikReider commented 5 months ago

how would I be able to do that?

Haven't really needed this myself, but a quick google brought me to this script. Not sure about how well this works, though.

@WillPower3309 any input?

adityavishwakarma69 commented 5 months ago

how would I be able to do that?

Haven't really needed this myself, but a quick google brought me to this script. Not sure about how well this works, though.

@WillPower3309 any input?

that script puts the terminal in scratchpad and when the process ends it expands the terminal again doesn't do anything special