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

Add support for xbacklight on Linux #11

Closed
wants to merge 1 commit into from

Conversation

bencevans
Copy link

Allows for changing the brightness without sudoing

Debian/Ubuntu users can install using apt-get install xbacklight

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) {
Copy link
Contributor

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');
Copy link
Contributor

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.

@sindresorhus
Copy link
Contributor

What's the benefit of this over the existing Linux implementation?

@bencevans
Copy link
Author

Doesn't require sudo rights

@sindresorhus
Copy link
Contributor

But it does require a manual apt-get install xbacklight, which is also not very user-friendly. Any way you could bundle xbacklight in your module? I've done that in the past myself (sindresorhus/clipboardy@e3404e7), and seems to work fine.

@kevva
Copy link
Owner

kevva commented May 24, 2017

ping @bencevans

@bencevans
Copy link
Author

Shall try to take a look soon.

@bencevans
Copy link
Author

I'm no longer using this so shall close the pull-request.

@bencevans bencevans closed this Oct 22, 2018
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.

3 participants