30 lines
713 B
Bash
Executable File
30 lines
713 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Installa/aggiorna il widget Caffeine e le unità systemd utente.
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
set -euo pipefail
|
|
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
if kpackagetool6 -t Plasma/Applet --upgrade "$HERE" 2>/dev/null; then
|
|
echo "Plasmoid aggiornato."
|
|
else
|
|
kpackagetool6 -t Plasma/Applet --install "$HERE"
|
|
echo "Plasmoid installato."
|
|
fi
|
|
|
|
"$HERE/contents/scripts/caffeine.sh" ensure-units "$HERE/systemd"
|
|
|
|
cat <<'EOF'
|
|
|
|
Fatto. Per aggiungere il widget al pannello:
|
|
tasto destro sul pannello -> Aggiungi widget -> Caffeine (categoria Utilità)
|
|
|
|
Da terminale:
|
|
./bin/enne2-caffeine on 30 # attiva per 30 minuti
|
|
./bin/enne2-caffeine off
|
|
./bin/enne2-caffeine status
|
|
EOF
|