mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Use more resilient restore
This commit is contained in:
@@ -12,5 +12,5 @@ fi
|
||||
if [[ $1 == "post" ]]; then
|
||||
previous=$(cat /run/omarchy/power-profile-before-sleep 2>/dev/null || echo "balanced")
|
||||
powerprofilesctl set performance
|
||||
(sleep 10 && powerprofilesctl set "$previous") &
|
||||
systemd-run --on-active=10 --timer-property=AccuracySec=1 powerprofilesctl set "$previous"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user