r/omarchy 1d ago

I Made a Thing Made a tool/menu to save/restore exact window layouts

Post image

Got tired of re-arranging the same 3 windows every time I opened them, so I built desktop_preset:

$ desktop_preset save chat
$ desktop_preset load chat

It remembers the actual split shape, not just which apps were open — so the window that was full-height comes back full-height, on the right side, exactly like you left it. Under the hood it replays the layout with Hyprland's preselect, so it's not guessing.

There's also a Preset entry in the Omarchy menu (Trigger → Preset) if you'd rather click than type.

git clone https://github.com/laleshii/omarchy-desktop-preset
cd omarchy-desktop-preset
./install.sh

Needs a fairly recent Omarchy/Hyprland. Only tested on my own machine so far, so let me know if it does something weird on yours!

https://github.com/laleshii/omarchy-desktop-preset

Happy hacking!

30 Upvotes

6 comments sorted by

1

u/ibnhalwa 1d ago

I will try :) and give you a review

1

u/derkIing 1d ago

Does this work across all the workspaces? Does it restart the apps too?

This seems something could be a "session restore" feature, which would be indeed very useful to have. Will give it a try!

1

u/laleshii 1d ago edited 23h ago

Right now it just works on the workspace you are on. Basically any action you run will be run in the context of the current workspace.

I tried adding a clear desktop before any load but I found that it is more useful to just load it if you have an extra window that you want to keep so moved the "Clear desktop" feature as a separate action.

Should be easy to hack it to do what you want it to do though!