dumpyourvms: linux 6.4 remembers screen brightness

Using acpi_video0 for changing the brightness with keyboard hotkeys
This commit is contained in:
teutat3s 2023-05-05 18:35:39 +02:00
parent 17cd75d4d8
commit 7c6235512d
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
3 changed files with 3 additions and 4 deletions

View file

@ -18,8 +18,8 @@ input "type:touchpad" {
#bindsym XF86TouchpadToggle exec $HOME/Workspace/ben/toggletouchpad.sh # toggle touchpad
# Screen brightness controls
bindsym XF86MonBrightnessUp exec "brightnessctl -d gmux_backlight set +10%"
bindsym XF86MonBrightnessDown exec "brightnessctl -d gmux_backlight set 10%-"
bindsym XF86MonBrightnessUp exec "brightnessctl -d acpi_video0 set +10%"
bindsym XF86MonBrightnessDown exec "brightnessctl -d acpi_video0 set 10%-"
# Keyboard backlight brightness controls
bindsym XF86KbdBrightnessDown exec "brightnessctl -d smc::kbd_backlight set 10%-"

View file

@ -16,7 +16,6 @@
ExecStart =
'' ${pkgs.swayidle}/bin/swayidle -w \
after-resume 'swaymsg "output * dpms on"' \
after-resume '${pkgs.brightnessctl}/bin/brightnessctl -d gmux_backlight set 60%' \
before-sleep 'swaylock-bg' ''
+ (
if psCfg.paranoia.enable

View file

@ -62,7 +62,7 @@
}
},
"backlight": {
"device": "gmux_backlight",
"device": "acpi_video0",
"format": "<span font='10'> {percent}%</span> {icon}",
"format-icons": ["", ""]
},