Regenerated

This commit is contained in:
2026-03-29 12:43:47 +00:00
parent c20216a9fe
commit 712e6e381c
4 changed files with 331 additions and 298 deletions
+302 -288
View File
File diff suppressed because it is too large Load Diff
+14
View File
@@ -2375,6 +2375,20 @@ in
rsync
];
############################
# swww daemon for the user
############################
systemd.user.services.swwwDaemon = {
description = "swww wallpaper daemon";
after = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = "${pkgs.swww}/bin/swww daemon";
Restart = "always";
Type = "simple";
};
wantedBy = [ "default.target" ];
};
############################
# User service: run the script
############################
@@ -12,15 +12,6 @@ if [ "${#IMAGES[@]}" -eq 0 ]; then
exit 1
fi
# -----------------------------
# Start swww daemon if not running
# -----------------------------
if ! pgrep -x swww > /dev/null; then
echo "Starting swww daemon..."
swww daemon &
sleep 1 # Give daemon time to start
fi
# -----------------------------
# Set a random wallpaper per workspace
# -----------------------------
@@ -29,6 +20,6 @@ WORKSPACES=$(hyprctl workspaces -j | jq -r '.[].id')
for ws in $WORKSPACES; do
RAND_IMAGE="${IMAGES[RANDOM % ${#IMAGES[@]}]}"
echo "Setting wallpaper for workspace $ws: $RAND_IMAGE"
# Each workspace gets its own namespace
# Set wallpaper for workspace
swww img "$RAND_IMAGE" --resize fit --transition-type random --namespace "$ws"
done
@@ -15,6 +15,20 @@ in
rsync
];
############################
# swww daemon for the user
############################
systemd.user.services.swwwDaemon = {
description = "swww wallpaper daemon";
after = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = "${pkgs.swww}/bin/swww daemon";
Restart = "always";
Type = "simple";
};
wantedBy = [ "default.target" ];
};
############################
# User service: run the script
############################