-
-
Notifications
You must be signed in to change notification settings - Fork 948
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
Comments
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. |
So how about just retaining that apps that were opened upon shutdown?
Let's forget about the state of each application but instead just retaining
the apps that were open in the first place.
Would that be more feasible?
…On Fri, 9 Jun 2023 at 23:42, Vaxry ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#2475 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUO245RQF2ZXFB6J2SETU3LXKOKEDANCNFSM6AAAAAAZAS5DR4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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 |
Beautiful. Thanks dude.
Will have a play around with that tomorrow.
…On Fri, 9 Jun 2023 at 23:46, Vaxry ***@***.***> wrote:
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 :)
—
Reply to this email directly, view it on GitHub
<#2475 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUO245WAOTEI4OI7TBECCOTXKOKUJANCNFSM6AAAAAAZAS5DR4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
you might also want to check out |
Got it. I'm just reading the man page for proc as we speak to see how I can
do it. I'm sure this would be a common request for a lot of people ya know.
I'll be back once I have something working :-D
Amazing work btw :)
…On Fri, 9 Jun 2023 at 23:50, Vaxry ***@***.***> wrote:
you might also want to check out /proc/$PID/cmdline if there are any
launch args.
—
Reply to this email directly, view it on GitHub
<#2475 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUO245UNHSESXSBU4RSOF5LXKOLEBANCNFSM6AAAAAAZAS5DR4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hey, is it possible to post your solution to this? was trying to do the same thing |
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 |
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/18 there is a wayland protocol that is awaiting merge that does exactly this and toolkits are starting to support it already: |
im currently using hyprsession, which is a very buggy solution |
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.
The text was updated successfully, but these errors were encountered: