Refactor a bit and add backlight brightness keys handling

This will only work if the video driver supports the xrandr backlight
property.  It's possible only Intel does this...
This commit is contained in:
2022-05-23 20:27:59 -07:00
parent 6e5dfabcfd
commit 8eb8dfac2e
6 changed files with 459 additions and 263 deletions

View File

@ -18,3 +18,6 @@ dialog-backend = "gtk3"
# Adds a 'New Login' button to the unlock dialog that will run the
# specified command when clicked
new-login-command = "dm-tool switch-to-greeter"
# Whether or not to attempt to raise and lower the screen brightness
# when the brightness keys are pressed
handle-brightness-keys = false