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

Can hotkeys be added to directly set brightness as 80% or 50% ? #34

Open
archisman-panigrahi opened this issue Oct 27, 2013 · 11 comments
Open
Assignees

Comments

@archisman-panigrahi
Copy link
Contributor

It is suggested in a review (Ubuntu Software Center).

@LordAmit
Copy link
Owner

You mean specific value or variable change?
For example, if it is specific value, lets say pressing a keyboard shortcut will change the brightness value to 80% no matter what the brightness value before pressing shortcut.
If it is variable change, then that means pressing a shortcut key will change brightness value relatively. For example, if the brightness was 50%, it will be changed to 60%, if it was 40%, it will be changed to 50%, etc.

Anyway, both will require some work to do. Moreover, the shortcuts assignment program across distros is different AFAIK. So it might take a while to do, provided that it is a global shortcut.

However, if it is a program only shortcut (i.e. BC is focused) - then it will be a lot more easier to implement compared to the global keyboard short approach.

@archisman-panigrahi
Copy link
Contributor Author

Just add program only shortcut.

@LordAmit
Copy link
Owner

Can certainly be done!

@DavidPerezIngeniero
Copy link

In KDE, it is quite easy to set a global shortcut, that calls xrandr with appropiate parameters.

@LordAmit
Copy link
Owner

Of course, but he was talking about program only shortcut.
If we are talking about global shortcut - I do not know about a unified approach that will allow us to set a xrandr based shortcut across all distros.
If you do, let us know!

@quentin-st
Copy link

I think assigning hotkeys to commands is quite widespread across distributions. I think we should focus on "how to set screens brightness using CLI" (either absolute, or relative/incremental) instead of "how to create hotkeys that are cross-distros compatible".

We would then be able to create an API such as

brightness-controller [--screen=<screen>] <value>

With values:

  • screen: n/all (n being the screen index; all being the default value if arg isn't specified)
  • value: [+/-]p (when using + or -, acts as a relative value ; else as an absolute one)

@LordAmit
Copy link
Owner

That's a really good suggestion! 👏

@LordAmit LordAmit self-assigned this May 29, 2017
@corebots
Copy link

would this mean that on a desktop PC with a monitor connected via displayport, you could substitute the on-monitor hw keys with these keyboard shortcuts for brightness adjustment and even more fine-tuned?

@quentin-st
Copy link

Yup indeed.
Actually, the hw keys on your monitor doesn't have anything to do with this software. They control your monitor settings, while this software modifies the signal that's sent to your monitor.
Anyway, in the end, you would be able to control your screen brightness using your keyboard.

@corebots
Copy link

thank you @chteuchteu i'm happy to hear that :) looking forward to this so much!

@corebots
Copy link

corebots commented Jun 6, 2018

Hi please is there any update on using keyboard shortcuts for controlling the brightness settings? thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants