I want to add it to my “On Battery” and “On AC” commands so that they auto switch.
Nvm, I got it.
On AC
kscreen-doctor
output.eDP-1.mode.1920x1200@165
output.eDP-1.maxbpc.12
output.eDP-1.brightness.100
&& qdbus org.kde.KWin /Effects org.kde.kwin.Effects.loadEffect blur
On Battery
kscreen-doctor
output.eDP-1.mode.1920x1200@60
output.eDP-1.maxbpc.6
output.eDP-1.edrPolicy.never
output.eDP-1.brightness.0
&& qdbus org.kde.KWin /Effects org.kde.kwin.Effects.unloadEffect blur
For some reason, the command after && doesn’t work, so you have to give sh ac.sh with an absolute path for both to work in KDE power management. I did give the file permission with chmod, but it just doesn’t work seamlessly…at least for me.
2 Likes