2023-11-03 08:50:49 +01:00
|
|
|
#!/bin/bash
|
2023-09-28 10:52:20 +02:00
|
|
|
|
2023-11-03 08:50:49 +01:00
|
|
|
get-profile () {
|
|
|
|
asusctl profile -p | awk '{print $4}'
|
2023-09-28 10:52:20 +02:00
|
|
|
}
|
|
|
|
|
2023-11-03 08:50:49 +01:00
|
|
|
active_profile="$(get-profile)"
|
2023-09-28 10:52:20 +02:00
|
|
|
|
2023-11-03 08:50:49 +01:00
|
|
|
if [ "$active_profile" == "Quiet" ]; then
|
|
|
|
asusctl profile -P Balanced
|
|
|
|
elif [ "$active_profile" == "Balanced" ]; then
|
|
|
|
asusctl profile -P Performance
|
|
|
|
else
|
|
|
|
asusctl profile -P Quiet
|
2023-09-28 10:52:20 +02:00
|
|
|
fi
|
|
|
|
|
2023-11-03 08:50:49 +01:00
|
|
|
pkill -USR1 i3status-rs
|