From 95c69be2c6f653f947c3d1989a277bfaa8ca3fa8 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Sun, 16 Nov 2025 15:14:39 +0700 Subject: [PATCH] scripts: power-profile-switch.sh --- .local/scripts/power-profile-switch.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/scripts/power-profile-switch.sh diff --git a/.local/scripts/power-profile-switch.sh b/.local/scripts/power-profile-switch.sh new file mode 100755 index 0000000..5520653 --- /dev/null +++ b/.local/scripts/power-profile-switch.sh @@ -0,0 +1,9 @@ +#!/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