scripts: power-profile-switch.sh
This commit is contained in:
parent
3c6e2521b0
commit
95c69be2c6
9
.local/scripts/power-profile-switch.sh
Executable file
9
.local/scripts/power-profile-switch.sh
Executable file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user