Regenerated

This commit is contained in:
2026-04-07 20:10:58 +02:00
parent 3be755bfb6
commit d9c5ee3e50
27 changed files with 344 additions and 305 deletions
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Get active workspace ID
ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Format number with leading zero (01, 02, ...)
num=$(printf "%02d" "$ws")
# Build wallpaper path
wall="$HOME/Wallpapers/pictures/${num}.jpg"
# Check if file exists
if [ -f "$wall" ]; then
# Set wallpaper (hyprpaper)
hyprctl hyprpaper unload all
hyprctl hyprpaper preload "$wall"
hyprctl hyprpaper wallpaper ",$wall"
fi
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
socket="$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock"
socat -U - UNIX-CONNECT:$socket | while read -r line; do
if [[ "$line" == workspace* ]]; then
~/.config/hypr/scripts/set-workspace-wallpaper.sh
fi
done