2022-02-07 14:20:56 +01:00
|
|
|
{ pkgs }:
|
|
|
|
pkgs.writeShellApplication {
|
|
|
|
name = "randomWallpaper";
|
|
|
|
|
2022-04-05 11:12:01 +02:00
|
|
|
runtimeInputs = with pkgs; [ findutils coreutils feh ];
|
2022-02-07 14:20:56 +01:00
|
|
|
|
|
|
|
text = ''
|
|
|
|
wallpaper="$(find ~/.config/wallpapers/ -type f,l | shuf -n 1)"
|
|
|
|
feh --bg-fill "$wallpaper"
|
|
|
|
'';
|
|
|
|
}
|