Can I set animation speed to 0 (instant) when on battery?

My laptop gets much better battery life on power save mode, but feels laggy and unresponsive when animations are turned on in power save mode. Is there a command I can run when plugged/unplugged to set animation speed? I tried logging dbus messages but it looks like there are several in a row that get sent when the setting is changed and I thought I’d do better to seek advice from someone more familiar with the topic at that point.

Hi scott

I really like automatic stuff but sometimes it is not worth the effort. Finding the correct files can be a pain.

I placed all the system settings .desktop files into a categorized folder and now I can go right to a specific settings window.

For your scenario it is 4 clicks. 1 click on kcm_workspace.desktop which I would place on the panel, slider is 1 click, apply is 1 click and X out at the top.

That process can be automated using a bash script with Xdotool and Xmacro.
The script can be run from the energy saving window in system settings.

Hopefully someone here knows how to do it easier. Good luck.

Vektor

There is a key AnimationDurationFactor inside $HOME/.config/kdeglobals
You can use kwriteconfig6 --key AnimationDurationFactor 0 to set to instant from the cmd line.

1 Like