mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2026-02-05 09:40:14 +01:00
Compare commits
No commits in common. "f1bec15eb19b7e39098087bc214c96691be17421" and "90dc9c78830f0fab1a49d94b2d81d81939cd90ea" have entirely different histories.
f1bec15eb1
...
90dc9c7883
@ -27,12 +27,6 @@ mkdir -p "$PARENT_DIR/Install-Logs"
|
||||
LOG="$PARENT_DIR/Install-Logs/install-$(date +%d-%H%M%S)_quickshell.log"
|
||||
MLOG="$PARENT_DIR/Install-Logs/install-$(date +%d-%H%M%S)_quickshell_build.log"
|
||||
|
||||
# Debian Trixie guard: Quickshell not compatible on Trixie at this time
|
||||
if grep -Eiq '\bVERSION_CODENAME=trixie\b' /etc/os-release; then
|
||||
echo "[INFO] debian Trixie not compatible with quickshell. Skipping quickshell install." | tee -a "$LOG"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Refresh sudo credentials once (install_package uses sudo internally)
|
||||
if command -v sudo >/dev/null 2>&1; then
|
||||
sudo -v 2>/dev/null || sudo -v
|
||||
@ -215,51 +209,6 @@ fi
|
||||
|
||||
echo "${OK} Quickshell installed successfully." | tee -a "$MLOG"
|
||||
|
||||
# Provide a shim for missing QtQuick.Effects.RectangularShadow (wraps MultiEffect)
|
||||
OVR_DIR=/usr/local/share/quickshell-overrides/QtQuick/Effects
|
||||
sudo install -d -m 755 "$OVR_DIR"
|
||||
sudo tee "$OVR_DIR/RectangularShadow.qml" >/dev/null <<'QML'
|
||||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
|
||||
Item {
|
||||
id: root
|
||||
// Minimal RectangularShadow shim using MultiEffect
|
||||
// Map common properties used by configs
|
||||
property alias source: fx.source
|
||||
property color color: "#000000"
|
||||
property real opacity: 0.4
|
||||
property real blur: 32
|
||||
property real xOffset: 0
|
||||
property real yOffset: 6
|
||||
property real scale: 1.0
|
||||
|
||||
MultiEffect {
|
||||
id: fx
|
||||
anchors.fill: parent
|
||||
shadowEnabled: true
|
||||
shadowColor: root.color
|
||||
shadowOpacity: root.opacity
|
||||
shadowBlur: root.blur
|
||||
shadowHorizontalOffset: root.xOffset
|
||||
shadowVerticalOffset: root.yOffset
|
||||
shadowScale: root.scale
|
||||
}
|
||||
}
|
||||
QML
|
||||
|
||||
# Install a wrapper to run Quickshell with system QML imports (avoids Nix/Flatpak overrides)
|
||||
WRAP=/usr/local/bin/qs-system
|
||||
sudo tee "$WRAP" >/dev/null <<'EOSH'
|
||||
#!/usr/bin/env bash
|
||||
# Run Quickshell preferring system Qt6 QML modules and overrides
|
||||
OVR=/usr/local/share/quickshell-overrides
|
||||
export QML_IMPORT_PATH="$OVR${QML_IMPORT_PATH:+:$QML_IMPORT_PATH}"
|
||||
export QML2_IMPORT_PATH="$OVR${QML2_IMPORT_PATH:+:$QML2_IMPORT_PATH}"
|
||||
exec qs "$@"
|
||||
EOSH
|
||||
sudo chmod +x "$WRAP" || true
|
||||
|
||||
# Build logs already written to $PARENT_DIR/Install-Logs
|
||||
# Keep source directory for reference in case user wants to rebuild later
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user