Skip to content

Add Screen.sleep() to manually invoke the screensaver #1727

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

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

ambv
Copy link
Contributor

@ambv ambv commented Nov 1, 2023

The default screensaver time is 15 minutes. I like to manually turn the screensaver on sooner, which I can do from Maiden by calling:

>> screensaver:event()

To be able to do this, screensaver needs to be a global.

Copy link
Member

@tehn tehn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd prefer this to be a more explicit function rather than just global a specialized timer.

can you instead make a function screen.sleep() ?

@ambv
Copy link
Contributor Author

ambv commented Nov 2, 2023

Oh, I like this.

@ambv ambv force-pushed the make-screensaver-global branch from 55f0397 to d200b07 Compare November 2, 2023 15:49
@ambv
Copy link
Contributor Author

ambv commented Nov 2, 2023

Done!

@ambv ambv changed the title Make screensaver global so you can manually call screensaver:event() Add Screen.sleep() to manually invoke the screensaver Nov 2, 2023
@tehn tehn merged commit 9e4581b into monome:main Nov 2, 2023
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

Successfully merging this pull request may close these issues.

2 participants