Files
nixos/Droidnix/assets/traveldroid/Wallpapers/set-wallpapers-per-workspace.sh
T
2026-03-26 14:24:05 +00:00

12 lines
337 B
Bash

#!/usr/bin/env bash
WALLS=("${HOME}/Wallpapers"/*)
NUM_WALLS=${#WALLS[@]}
# Get workspace IDs
WS_IDS=($(hyprctl workspaces -j | jq -r '.[].id'))
for i in "${!WS_IDS[@]}"; do
WALL="${WALLS[$((i % NUM_WALLS))]}"
swww img "$WALL" --workspace "${WS_IDS[$i]}" --transition-type fade slide blend zoom wipe cube fade-zoom slide-zoom
done