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

Control with terminal

Open cdalexndr opened this issue 2 months ago • 3 comments

In setttings i find the current-brightness settings:

settings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas list-recursively
org.gnome.shell.extensions.soft-brightness-plus builtin-monitor ''
org.gnome.shell.extensions.soft-brightness-plus clone-mouse true
org.gnome.shell.extensions.soft-brightness-plus current-brightness 1.0
org.gnome.shell.extensions.soft-brightness-plus debug false
org.gnome.shell.extensions.soft-brightness-plus min-brightness 0.10000000000000001
org.gnome.shell.extensions.soft-brightness-plus monitors 'all'
org.gnome.shell.extensions.soft-brightness-plus prevent-unredirect 'when-correcting'
org.gnome.shell.extensions.soft-brightness-plus use-backlight false

Changing the current-brightness has no effect: gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas set org.gnome.shell.extensions.soft-brightness-plus current-brightness 0.2

How to control brightness from terminal? This is useful for running command for custom keyboard shortcut.

cdalexndr avatar Oct 21 '25 13:10 cdalexndr

This could be very usefull to remap keybind in gnome to send command to up and down brightness

TheNexter avatar Nov 12 '25 15:11 TheNexter

Hey @cdalexndr and @TheNexter , With these 2 shell scripts put into ~/.local/bin/, you can control the extension from the terminal... I even set shortcuts Ctrl + Alt + ↑ and Ctrl + Alt + ↓ and it works like a charm!

Please remove the .sh on the files. I added 'em cz I couldn't upload the files without a file type... I liked them that way cz I could simply run sbp-inc and it'd increase the brightness.

DavidMANZI-093 avatar Nov 20 '25 09:11 DavidMANZI-093

Hey @cdalexndr and @TheNexter , With these 2 shell scripts put into ~/.local/bin/, you can control the extension from the terminal... I even set shortcuts Ctrl + Alt + ↑ and Ctrl + Alt + ↓ and it works like a charm!

Please remove the .sh on the files. I added 'em cz I couldn't upload the files without a file type... I liked them that way cz I could simply run sbp-inc and it'd increase the brightness.

The extension is controllable from the terminal. You can see the hole behaviour described in the schema file but gsettings won't let you have it. You gotta use dconf as it's the one that can actually read the schema file. gsettings reads global ones only... I hope this helps 😄 .

DavidMANZI-093 avatar Nov 20 '25 09:11 DavidMANZI-093