Regenerated
This commit is contained in:
+296
-296
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
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,4 +45,4 @@ handle() {
|
|||||||
# -----------------------------
|
# -----------------------------
|
||||||
socat -U - UNIX-CONNECT:"$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" | while read -r line; do
|
socat -U - UNIX-CONNECT:"$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" | while read -r line; do
|
||||||
handle "$line"
|
handle "$line"
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user