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

Gradual Screen dimming with Hypridle #11

Open
brunofavs opened this issue Nov 2, 2024 · 0 comments
Open

Gradual Screen dimming with Hypridle #11

brunofavs opened this issue Nov 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@brunofavs
Copy link
Owner

Tried it, was met with a big obstacle.

#!/bin/bash
# This script was a attempt at making a gradual dimming with
# hypridle. It works to an extent but has a major flaw :
# the while loop won't get interrupted if the system stops being idle while it runs.
# Thus, the on-resume command will restore the initial brightness but this script can still be running
# and keep lowering it.
#
# Solution : Find a way to detect idle'ness and update the loop condition.
# On X, there is xprintidle. I don't think there is a alternative for Wayland.

@brunofavs brunofavs added the enhancement New feature or request label Nov 2, 2024
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

1 participant