Regenerated
This commit is contained in:
+2
-6
@@ -805,17 +805,13 @@ in
|
||||
|
||||
systemd.user.services.swww-init = {
|
||||
Unit = {
|
||||
Description = "Initialize wallpaper with swww";
|
||||
Description = "Initialize wallpapers per workspace";
|
||||
After = [ "swww-daemon.service" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = ''
|
||||
${pkgs.swww}/bin/swww img ${wallpaperDst} --transition-type fade slide blend zoom wipe cube fade-zoom slide-zoom
|
||||
'';
|
||||
ExecStart = "${wallpaperDst}/set-wallpapers-per-workspace.sh";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
@@ -81,17 +81,13 @@ in
|
||||
|
||||
systemd.user.services.swww-init = {
|
||||
Unit = {
|
||||
Description = "Initialize wallpaper with swww";
|
||||
Description = "Initialize wallpapers per workspace";
|
||||
After = [ "swww-daemon.service" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = ''
|
||||
${pkgs.swww}/bin/swww img ${wallpaperDst} --transition-type fade slide blend zoom wipe cube fade-zoom slide-zoom
|
||||
'';
|
||||
ExecStart = "${wallpaperDst}/set-wallpapers-per-workspace.sh";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user