Complete unstable configuration with home manager
This commit is contained in:
parent
bbee9d7993
commit
df1d6df54e
17 changed files with 412 additions and 312 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue