soft-brightness icon indicating copy to clipboard operation
soft-brightness copied to clipboard

Add shortcuts or other way to change the brightness programatically

Open CristianKerr opened this issue 3 years ago • 1 comments

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

CristianKerr avatar May 08 '21 16:05 CristianKerr

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
    

F-i-f avatar Dec 19 '21 04:12 F-i-f