Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent Desktop that keeps the apps open that you shut down using #2475

Closed
speightashley opened this issue Jun 9, 2023 · 10 comments
Closed
Labels
enhancement New feature or request

Comments

@speightashley
Copy link

I read through the documentation and guidelines for bash scripts but couldn't find anything that would be suitable to do what I want to do.

I was previously using a tiling window environment called Material Shell that was build on top of Gnome. We could have a persistent desktop with this so that when we restart, it saves the state of the programs that are open upon shutdown.

Is there a way we can do this with Hyprland?

I've done a workaround with starting my regular applications on different desktops but it's not really the same. I might be working on a specific project and when I restart, it will open VScode without that project in its current state.

@speightashley speightashley added the enhancement New feature or request label Jun 9, 2023
@vaxerski
Copy link
Member

vaxerski commented Jun 9, 2023

I don't think hyprland can magically understand what every program you use is doing and how to restart it in a way that it comes back to that state. That would be the app's job.

For me, when I open vs code after a restart it does come back to my last opened state, but it's vs code doing it and not hyprland.

@vaxerski vaxerski closed this as completed Jun 9, 2023
@speightashley
Copy link
Author

speightashley commented Jun 9, 2023 via email

@vaxerski
Copy link
Member

vaxerski commented Jun 9, 2023

I think that has already been suggested somewhere. In the meantime you can make a script to do that for you. Hyprland exposes PIDs in hyprctl clients which you can use to read /proc/$PID/exe, save that, and launch next time you start up hyprland :)

@speightashley
Copy link
Author

speightashley commented Jun 9, 2023 via email

@vaxerski
Copy link
Member

vaxerski commented Jun 9, 2023

you might also want to check out /proc/$PID/cmdline if there are any launch args.

@speightashley
Copy link
Author

speightashley commented Jun 9, 2023 via email

@mairs8
Copy link

mairs8 commented Nov 23, 2023

Hey, is it possible to post your solution to this? was trying to do the same thing

@littleblack111
Copy link
Contributor

littleblack111 commented Sep 6, 2024

if this not get any attention. then how about allowing a exec when shutting down(hyprland)(like storing info to disk) so at least we can write script ourselves to do so

@littleblack111
Copy link
Contributor

littleblack111 commented Oct 11, 2024

@littleblack111
Copy link
Contributor

im currently using hyprsession, which is a very buggy solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants