mkdir -p ~/.local/bin
cat > ~/.local/bin/cycle-power-profile <<'EOF'
#!/bin/bash
current="$(powerprofilesctl get)"
case "$current" in
balanced)
next="performance"
title="Производительность"
;;
performance)
next="power-saver"
title="Энергосбережение"
;;
*)
next="balanced"
title="Сбалансированный"
;;
esac
if powerprofilesctl set "$next"; then
notify-send "Режим питания" "$title"
fi
EOF
chmod +x ~/.local/bin/cycle-power-profile