I think this could save me some battery time. I checked tlp but could not find anything related. In Sway config with swayidle maybe? All help appreciated.
I think this could save me some battery time. I checked tlp but could not find anything related. In Sway config with swayidle maybe? All help appreciated.
You could use swayidle and add a line to use either light or brightnessctl to dim and restore the brightness. Or just as I do turn off display after a certain time. This link should give you an idea. https://wiki.archlinux.org/title/Sway#Idle
Brightnessctl is installed and works just need a way to read whether is on ac or battery.