Integra calibrazione RGB nel plasmoide e ripristina backend funzionante
This commit is contained in:
+4
-1
@@ -27,6 +27,7 @@ check "import gi; gi.require_version('Gst','1.0'); gi.require_version('GstApp','
|
||||
check "import dbus" "python3-dbus"
|
||||
check "import serial" "python3-pyserial"
|
||||
check "import numpy" "python3-numpy"
|
||||
check "import PySide6" "python3-pyside6 (calibrazione)"
|
||||
if ! gst-inspect-1.0 pipewiresrc >/dev/null 2>&1; then
|
||||
warn "manca: gstreamer1-plugin-pipewire (pipewiresrc)"
|
||||
missing=1
|
||||
@@ -43,6 +44,7 @@ install -m 755 "$HERE/backend/ambilightd.py" "$BIN/ambilightd.py"
|
||||
install -m 644 "$HERE/backend/ambicapture.py" "$BIN/ambicapture.py"
|
||||
install -m 755 "$HERE/backend/ambicatcher.py" "$BIN/ambicatcher.py"
|
||||
install -m 755 "$HERE/backend/ambilight-ctl" "$BIN/ambilight-ctl"
|
||||
install -m 755 "$HERE/calibration/ambilight_calibrate.py" "$BIN/ambilight-calibrate"
|
||||
|
||||
say "Installo il servizio utente"
|
||||
install -d "$SYSDIR"
|
||||
@@ -56,7 +58,8 @@ say "Installo il plasmoide $APPLET_ID"
|
||||
TMP="$(mktemp -d)"
|
||||
trap 'rm -rf "$TMP"' EXIT
|
||||
cp -r "$HERE/package/$APPLET_ID" "$TMP/"
|
||||
sed -i "s|@CTL@|$BIN/ambilight-ctl|g" "$TMP/$APPLET_ID/contents/ui/main.qml"
|
||||
sed -i -e "s|@CTL@|$BIN/ambilight-ctl|g" \
|
||||
-e "s|@CALIBRATE@|$BIN/ambilight-calibrate|g" "$TMP/$APPLET_ID/contents/ui/main.qml"
|
||||
if kpackagetool6 --type Plasma/Applet --show "$APPLET_ID" >/dev/null 2>&1; then
|
||||
kpackagetool6 --type Plasma/Applet --upgrade "$TMP/$APPLET_ID"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user