fix: 'Manually' randomize feh wallpapers
The wallpaper folder is now in git and feh will pick any random file in the folder that it is pointed at, leading to it constantly failing while trying to set git objects as the wallpaper. This uses manual 'fd | shuf | xargs' pipeline for the same purpose.
This commit is contained in:
parent
f771c2a643
commit
a11aca65a5
1 changed files with 3 additions and 2 deletions
|
@ -69,7 +69,7 @@ in {
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
jetbrains.idea-community pavucontrol spotify xclip tdesktop
|
jetbrains.idea-community pavucontrol spotify xclip tdesktop
|
||||||
rofi rofi-pass alacritty i3lock unstable.firefox-beta-bin
|
rofi rofi-pass alacritty i3lock unstable.firefox-beta-bin fd
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -88,7 +88,8 @@ in {
|
||||||
description = "Randomly set wallpaper via feh";
|
description = "Randomly set wallpaper via feh";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${pkgs.feh}/bin/feh --recursive --randomize --bg-fill %h/wallpapers";
|
WorkingDirectory = "%h/wallpapers";
|
||||||
|
ExecStart = "${pkgs.bash}/bin/bash -c '${pkgs.fd}/bin/fd -atf | shuf | head -n1 | ${pkgs.findutils}/bin/xargs ${pkgs.feh}/bin/feh --bg-fill'";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue