Switch to nixfmt
This commit is contained in:
parent
44794e2c3d
commit
5b974a203b
63 changed files with 990 additions and 946 deletions
|
|
@ -1,17 +1,10 @@
|
|||
{ feh
|
||||
, glib
|
||||
, findutils
|
||||
, gnugrep
|
||||
, coreutils
|
||||
, writeScriptBin
|
||||
, backgrounds_directory ? "$HOME/Immagini/Sfondi"
|
||||
}:
|
||||
{ feh, glib, findutils, gnugrep, coreutils, writeScriptBin
|
||||
, backgrounds_directory ? "$HOME/Immagini/Sfondi" }:
|
||||
let
|
||||
find = "${findutils}/bin/find";
|
||||
grep = "${gnugrep}/bin/grep";
|
||||
shuf = "${coreutils}/bin/shuf";
|
||||
in
|
||||
writeScriptBin "update-background" ''
|
||||
in 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