-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add support for xbacklight on Linux #11
Conversation
Allows for changing the brightness without sudoing Debian/Ubuntu users can install using `apt-get install xbacklight`
var Promise = require('pinkie-promise'); | ||
|
||
function get() { | ||
return new Promise(function (resolve, reject) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need to wrap a promise in another promise.
@@ -0,0 +1,24 @@ | |||
var xbacklight = require('xbacklight'); | |||
var Promise = require('pinkie-promise'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer needed as this module targets Node.js 4 now.
What's the benefit of this over the existing Linux implementation? |
Doesn't require sudo rights |
But it does require a manual |
ping @bencevans |
Shall try to take a look soon. |
I'm no longer using this so shall close the pull-request. |
Allows for changing the brightness without sudoing
Debian/Ubuntu users can install using
apt-get install xbacklight