Skip to content

Commit ce29e45

Browse files
committed
Use /run/omarchy instead of just /tmp
1 parent 7bfd848 commit ce29e45

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

default/systemd/system-sleep/resume-boost

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
# restore the previous profile after 10 seconds.
66

77
if [[ $1 == "pre" ]]; then
8-
powerprofilesctl get > /tmp/power-profile-before-sleep
8+
mkdir -p /run/omarchy
9+
powerprofilesctl get > /run/omarchy/power-profile-before-sleep
910
fi
1011

1112
if [[ $1 == "post" ]]; then
12-
previous=$(cat /tmp/power-profile-before-sleep 2>/dev/null || echo "balanced")
13+
previous=$(cat /run/omarchy/power-profile-before-sleep 2>/dev/null || echo "balanced")
1314
powerprofilesctl set performance
1415
(sleep 10 && powerprofilesctl set "$previous") &
1516
fi

0 commit comments

Comments
 (0)