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

Screensaver, Suspend/Hibernate and hook to lock after then. #387

Open
AdsonCicilioti opened this issue Nov 7, 2023 · 5 comments
Open

Screensaver, Suspend/Hibernate and hook to lock after then. #387

AdsonCicilioti opened this issue Nov 7, 2023 · 5 comments

Comments

@AdsonCicilioti
Copy link

Hey guys!

Is there any support or plan from Hyprland to facilitate or implement any screensavers?

Could you address in the documentation an example of how to deal with screensaver/suspend/hibernation and how to call a screen locker when returning from these states?

Thank you and congratulations on the great work with Hyprland!

@vaxerski
Copy link
Member

vaxerski commented Nov 8, 2023

no plan atm for first-party tools like that.

@rukmal
Copy link

rukmal commented Aug 4, 2024

@vaxerski can you suggest a good jumping off point for writing some docs for this? Happy to take a look.

@poetex
Copy link
Contributor

poetex commented Nov 4, 2024

@AdsonCicilioti I believe the hypridle package supports what you're asking about. It uses a concept of listeners to set/run commands after specific timeout parameters.

Installation

yay -S hypridle

Configuration

touch .config/hypr/hypridle.conf

Then use your favorite text editor to add the configuration. If you just want to enter a lockscreen after a specific amount of time, you could make the conf file as simple as:

general{
    lock_cmd = piodf hyprlock || hyprlock
}

listener{
    timeout = 300
    on-timeout = loginctl lock-session
    on-resume = notify-send "welcome back!"
}

NOTE: This step assumes that you have already installed and configured hyprlock, the hypr ecosystem's simple, yet multi-threaded and GPU-accelerated screen locking utility. Additionally, the "welcome back!" message will only display if you have a notification manager installed and enabled. My personal preference (chosen for it's aesthetic) is sway-nc

You also mentioned screensavers in your original comment. Hypr (per usual) has you covered there as well with hyprpaper. @hyprwm really knew what they were doing when they designed this ecosystem.

Let me know if this response sufficiently answers your inquiry, and if so, I recommend we close this issue.

@poetex
Copy link
Contributor

poetex commented Nov 4, 2024

Also it should be noted that the full hyprland ecosystem wiki can be found here:
https://wiki.hyprland.org/Hypr-Ecosystem

It might be a worthwhile consideration to add this URL to the main page of the hyprland documentation, since a lot of feature inquiries about "does hyprland offer..." could be answered simply by pointing users to the larger hypr ecosystem.

@poetex
Copy link
Contributor

poetex commented Nov 4, 2024

It might be a worthwhile consideration to add this URL to the main page of the hyprland documentation,

Edit: This link is already present on the main index page and included in this repo's pages:
https://github.com/hyprwm/hyprland-wiki/tree/main/pages/Hypr%20Ecosystem

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

No branches or pull requests

4 participants