Switch to nixpkgs-fmt formatter

This commit is contained in:
Filippo Berto 2023-02-24 09:24:21 +01:00
parent 36f6903639
commit ca59cb8f3c
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
45 changed files with 695 additions and 606 deletions

View file

@ -1,5 +1,10 @@
{ writeShellScriptBin, lib, xclip, coreutils, terminal-command ? "kitty sh -c"
, editor-command ? "hx" }:
{ writeShellScriptBin
, lib
, xclip
, coreutils
, terminal-command ? "kitty sh -c"
, editor-command ? "hx"
}:
# 64 │ function clipcopy() { xclip -in -selection clipboard < "${1:-/dev/stdin}"; }
# 65 │ function clippaste() { xclip -out -selection clipboard; } clip
writeShellScriptBin "clipedit" ''

View file

@ -9,4 +9,5 @@ let
update-background = pkgs.callPackage ./update-background { };
vital-synth = pkgs.callPackage ./vital-synth { };
};
in self
in
self

View file

@ -1,7 +1,15 @@
{ lib, rice, roboto, i3lock-color, writeScriptBin, font ? {
package = roboto;
name = "Roboto";
}, palette ? rice.palette.palette { }, ... }:
{ lib
, rice
, roboto
, i3lock-color
, writeScriptBin
, font ? {
package = roboto;
name = "Roboto";
}
, palette ? rice.palette.palette { }
, ...
}:
let strPalette = lib.nix-rice.palette.toRGBAHex palette;
in writeScriptBin "lockscreen" ''
# Using font package ${font.package}

View file

@ -1,10 +1,17 @@
{ 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`