dotfiles/.local/scripts/power-profile-switch.sh

10 lines
165 B
Bash
Executable File

#!/bin/bash
AC_STATE=$(cat /sys/class/power_supply/AC0/online)
if [ "$AC_STATE" -eq 1 ]; then
asusctl profile -P Balanced
else
asusctl profile -P Quiet
fi