Read and set power profiles over D-Bus

This commit is contained in:
SirBlob committed 2026-10-03 17:42:52 -04:00
1 parent 7e747d18bf
commit 00e6038706
3 files changed
+13 -9

No files matched your search

+2 -1
View File
@@ -55,7 +55,8 @@ if [[ -z ${profile:-} ]] || ! profile_available "$profile"; then
fi
fi
powerprofilesctl set "$profile" || exit
busctl set-property org.freedesktop.UPower.PowerProfiles /org/freedesktop/UPower/PowerProfiles \
org.freedesktop.UPower.PowerProfiles ActiveProfile s "$profile" || exit
if [[ -n $requested_profile ]]; then
mkdir -p "$state_dir"