dumpyourvms: linux 6.4 remembers screen brightness
Using acpi_video0 for changing the brightness with keyboard hotkeys
This commit is contained in:
parent
17cd75d4d8
commit
7c6235512d
|
@ -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%-"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
}
|
||||
},
|
||||
"backlight": {
|
||||
"device": "gmux_backlight",
|
||||
"device": "acpi_video0",
|
||||
"format": "<span font='10'> {percent}%</span> {icon}",
|
||||
"format-icons": ["", ""]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue