Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Add option to save layouts

Open SimonBrandner opened this issue 2 years ago • 1 comments

Add option to save layouts similarly to what i3wm allows you to do it

SimonBrandner avatar Jan 24 '23 18:01 SimonBrandner

It'll be very useful to have an option to automatically restore last layout on reboot.

yogeshkumar98103 avatar Feb 03 '23 08:02 yogeshkumar98103

When doing development I often have the same four or more windows open, in the same layout. It would be useful to be able to save a session and quickly restore any required layout for a given task or set of tasks. Obviously this can be hacked together via scripts, but it does seem like natural extension of functionality for a tiling compositor that handles window layout. P.S: Thank you for your excellent work so far. Hyprland on wayland is terrific :-)

magicBeast avatar May 27 '23 20:05 magicBeast

yes this would be very useful, even though tmux come to complement in its way, but why bother to configure another window navigating feature in it?

witnes0417 avatar Jul 01 '23 05:07 witnes0417

I just assumed this was available when I installed Hyprland and I must say...disappointed that it is not available, and a pull request to actually add it was rejected...

ScuttleSE avatar Jul 15 '24 16:07 ScuttleSE

yo i'd love this, having all my windows opening with certain sizes in certain positions in certain workspaces would be amazing. i'd be great if we could either take a snapshot and bind that to a key or something. or have hyprland load the last used layout on startup

EnderSpy29 avatar Jul 20 '24 04:07 EnderSpy29

agreed, I want to have few workspace pre-setup every time I login

tonysvo avatar Jul 23 '24 16:07 tonysvo

As a workaround, you can autostart desired programs. Here is an example from my config.

exec-once=[workspace 1 silent] $browser & sleep 4; $clock & sleep 1; $filemanager & $telegram &

izmyname avatar Jul 27 '24 18:07 izmyname

Also, I see several pull requests, relevant to this issue, were declined, so I guess this function isn't going to be implemented. Should the issue be closed?

izmyname avatar Jul 31 '24 18:07 izmyname

As a workaround, you can autostart desired programs. Here is an example from my config.

exec-once=[workspace 1 silent] $browser & sleep 4; $clock & sleep 1; $filemanager & $telegram &

i have programs executed on startup. what we want is the ability to set all applications to load in a predefined location, size and layout

EnderSpy29 avatar Aug 08 '24 00:08 EnderSpy29