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"
monitors=$(hyprctl monitors -j | jq -r '.[].name') # list all monitor names
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
}
@@ -45,4 +45,4 @@ handle() {
# -----------------------------
socat -U - UNIX-CONNECT:"$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" | while read -r line; do
handle "$line"
done
done
@@ -27,17 +27,17 @@ until [ -S "$IPC_SOCKET" ]; do
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 ! pgrep -f "swww-daemon.*--namespace $NAMESPACE" >/dev/null; then
echo "Starting swww-daemon for namespace $NAMESPACE..."
"$CURRENTPATH/swww-daemon" --namespace "$NAMESPACE" &
if [ ! -S "$awww_SOCKET" ]; then
if ! pgrep -f "awww-daemon.*--namespace $NAMESPACE" >/dev/null; then
echo "Starting awww-daemon for namespace $NAMESPACE..."
"$CURRENTPATH/awww-daemon" --namespace "$NAMESPACE" &
sleep 0.5
else
echo "swww-daemon already running for namespace $NAMESPACE"
echo "awww-daemon already running for namespace $NAMESPACE"
fi
fi
@@ -78,6 +78,6 @@ get_wallpaper() {
if [ -n "$WS_NUM" ] && [ -n "$MONITOR" ]; then
WALLPAPER=$(get_wallpaper "$WS_NUM" "$MONITOR")
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
done