raphaelquintao / QRedshiftCinnamon

Linux Cinnamon applet to change screen color temperature
https://cinnamon-spices.linuxmint.com/applets/view/313
Apache License 2.0
96 stars 13 forks source link

Add key binding to increase/decrease brightness #9

Closed AtilioA closed 4 years ago

AtilioA commented 4 years ago

It's working, but I've never used GTK or any GUI lib before so I probably did something wrong here. I also added the strings to template files, but couldn't recompile translations to test it.

Default values (just like f.lux's): Increase brightness (10%): Alt + Page Up Decrease brightness (10%): Alt + Page Down

Resolves #8.

raphaelquintao commented 4 years ago

Try not commit spaces, please.

raphaelquintao commented 4 years ago

You can find the step in this.db_Slider.STEP. You really dont need to call this.doUpdate() when you emit a value to the sliderthis.db_Slider._setValueEmit(newValuenb) dayBrightChange is called.

Thanks man! I will just keep the keybindings with Control, but of course you can change to alt.