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

Possible to run in non-interactive mode? #4

Open
trbjo opened this issue Oct 11, 2019 · 2 comments
Open

Possible to run in non-interactive mode? #4

trbjo opened this issue Oct 11, 2019 · 2 comments

Comments

@trbjo
Copy link

trbjo commented Oct 11, 2019

I would like to be able to bind hotkeys to increment or decrement the brightness.

This would allow me to just press XF86MonBrightnessDown or XF86MonBrightnessUp directly on the keyboard instead of having to fire up a terminal and running the program interactively each time.

So a sort of command mode. E.g. /usr/bin/lguf_brightness --increment.

Is this possible?

@phil9909
Copy link

@trobjo I'm looking for a similar feature. Have you solved this?
Otherwise I'm willing to implement this.

@jrdoane
Copy link

jrdoane commented Jun 30, 2020

I'm not sure if this would be helpful, but I forked the repo and made some changes because I needed to support multiple displays and I wanted to be able to specify a percentage of max brightness without the interactive UI. C++ isn't really my strong suit, but I needed to find a way from keeping my 5K Ultrafines from burning holes in my retinas from the brightness, so I ripped out a bunch of the stepping code and simplified it.

So basically if I want 50% brightness, it's just sudo lguf_brightness all 50.

https://github.com/jrdoane/lguf-brightness

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

No branches or pull requests

3 participants