Skip to content

best practices for scripting #378

Closed Answered by rockowitz
laur89 asked this question in Q&A
Discussion options

You must be logged in to vote

I've twice written extended answers that seem to have gone lost. So this one, I'm afraid, will be brief.

  1. For a list of programs to control screen brightness, see this Arch Linux page.

  2. See option --brief

  3. If you're writing a script for your own use, caching display information works. As a released program, the devil is in the edge cases. Unreleased option --enable-displays-cache was an attempt to do this, but reliably checking the edge cases negated the performance gain. The shared library has part of an implementation for this, but the best that could be done in upcoming release 2.1.3 is to just tell the client that "something" has happened and leave it to the client to initiate comp…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by laur89
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants