Complete unstable configuration with home manager

This commit is contained in:
Filippo Berto 2022-04-15 17:16:06 +02:00
parent bbee9d7993
commit df1d6df54e
17 changed files with 412 additions and 312 deletions

View file

@ -5,14 +5,14 @@
, findutils
, gnugrep
, coreutils
, writeScript
, writeScriptBin
, backgrounds_directory ? "$HOME/Immagini/Sfondi"}:
let
find = "${findutils}/bin/find";
grep = "${gnugrep}/bin/grep";
shuf = "${coreutils}/bin/shuf";
in
writeScript "update-background.sh" ''
writeScriptBin "update-background" ''
#!/bin/sh
if [ $# -eq 0 ]; then
image=`${find} ${backgrounds_directory} -type f | ${grep} -v "/\." | ${shuf} -n 1`