Skip to content

add option to change refresh rate#36

Open
SaphiraKai wants to merge 1 commit intoinstantOS:mainfrom
SaphiraKai:refresh-rate-options
Open

add option to change refresh rate#36
SaphiraKai wants to merge 1 commit intoinstantOS:mainfrom
SaphiraKai:refresh-rate-options

Conversation

@SaphiraKai
Copy link
Copy Markdown
Contributor

This PR adds an option under Display to specify the display's refresh rate. It does not support setting completely arbitrary refresh rates (as creating custom resolutions on the fly can be...problematic), only those reported by xrandr.

To support this, the PR also adds two functions:

  • confirm : display a message ($2) to the user and prompt them to press 'OK', exiting with code 1 after $1 seconds if the user doesn't respond
  • timeout : backend function for confirm

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.

1 participant