Regenerated

This commit is contained in:
2026-04-05 21:00:20 +02:00
parent b0033b6451
commit 5ee961888b
3 changed files with 306 additions and 306 deletions
+296 -296
View File
File diff suppressed because it is too large Load Diff
@@ -10,7 +10,7 @@ set_wallpaper_all_monitors() {
pic="$1" pic="$1"
monitors=$(hyprctl monitors -j | jq -r '.[].name') # list all monitor names monitors=$(hyprctl monitors -j | jq -r '.[].name') # list all monitor names
for m in $monitors; do for m in $monitors; do
swww img -o "$m" -t fade --transition-duration 1 "$pic" awww img -o "$m" -t fade --transition-duration 1 "$pic"
done done
} }
@@ -27,17 +27,17 @@ until [ -S "$IPC_SOCKET" ]; do
done done
# ------------------------------- # -------------------------------
# Start swww-daemon if not already running # Start awww-daemon if not already running
# ------------------------------- # -------------------------------
SWWW_SOCKET="$XDG_RUNTIME_DIR/swww/$NAMESPACE.sock" awww_SOCKET="$XDG_RUNTIME_DIR/awww/$NAMESPACE.sock"
if [ ! -S "$SWWW_SOCKET" ]; then if [ ! -S "$awww_SOCKET" ]; then
if ! pgrep -f "swww-daemon.*--namespace $NAMESPACE" >/dev/null; then if ! pgrep -f "awww-daemon.*--namespace $NAMESPACE" >/dev/null; then
echo "Starting swww-daemon for namespace $NAMESPACE..." echo "Starting awww-daemon for namespace $NAMESPACE..."
"$CURRENTPATH/swww-daemon" --namespace "$NAMESPACE" & "$CURRENTPATH/awww-daemon" --namespace "$NAMESPACE" &
sleep 0.5 sleep 0.5
else else
echo "swww-daemon already running for namespace $NAMESPACE" echo "awww-daemon already running for namespace $NAMESPACE"
fi fi
fi fi
@@ -78,6 +78,6 @@ get_wallpaper() {
if [ -n "$WS_NUM" ] && [ -n "$MONITOR" ]; then if [ -n "$WS_NUM" ] && [ -n "$MONITOR" ]; then
WALLPAPER=$(get_wallpaper "$WS_NUM" "$MONITOR") WALLPAPER=$(get_wallpaper "$WS_NUM" "$MONITOR")
echo "Setting wallpaper for workspace $WS_NUM on monitor $MONITOR: $WALLPAPER" echo "Setting wallpaper for workspace $WS_NUM on monitor $MONITOR: $WALLPAPER"
"$CURRENTPATH/swww" img "$WALLPAPER" --resize stretch --namespace "$WS_NUM" "$CURRENTPATH/awww" img "$WALLPAPER" --resize stretch --namespace "$WS_NUM"
fi fi
done done