nix-config/home/lf/cleaner.nix

8 lines
229 B
Nix
Raw Permalink Normal View History

2022-03-14 15:20:17 +01:00
{ config, pkgs, ... }:
let printf = "${pkgs.coreutils-full}/bin/printf";
in
pkgs.writeShellScript "lf-cleaner.sh" ''
[ -n "$FIFO_UEBERZUG" ] && ${printf} '{"action": "remove", "identifier": "PREVIEW"}\n' > "$FIFO_UEBERZUG"
''