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 shortcuts or other way to change the brightness programatically #38

Open
CristianKerr opened this issue May 8, 2021 · 1 comment

Comments

@CristianKerr
Copy link

Please add a way to control this brightness with keyboard and/or commands. I need a way to add this to my KDE connect so that I can adujst brightness with my phone while watching a movie. Right now, I am using xrandr for that, but it doesn't work with your extension, which is otherwise excellent.
Thank you

@F-i-f
Copy link
Owner

F-i-f commented Dec 19, 2021

Regarding brightness control with the keyboard:
Please check the section about the Use backlight control on how to achieve that. You want to have backlight control on in settings.

Regarding programmatic access:

  • If you're using backlight control, you can change the brightness with the hotkeys and use the usual programatic ways to change the brightness.
  • If you're not using backlight control, you'll have to bind hotkeys yourself, and you can access and change the brightness level with dconf:
    dconf write /org/gnome/shell/extensions/soft-brightness/current-brightness 0.8
    dconf read /org/gnome/shell/extensions/soft-brightness/current-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

2 participants