overwrite every time

This commit is contained in:
Ivan Kirilov Dimitrov 2024-07-07 19:36:13 +02:00
parent 21e17fefa2
commit ce8b986fd2
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294

View File

@ -19,7 +19,7 @@ top@{ inputs, ... }: {
extraPlugins = with pkgs.vimPlugins; [ otter-nvim ];
};
bingwp = pkgs.writers.writeNuBin "bingwp" ''
http get "https://pic.idimitrov.dev/latest.png" | save ([(xdg-user-dir PICTURES), "bg.png"] | str join "/")
http get "https://pic.idimitrov.dev/latest.png" | save -f ([(xdg-user-dir PICTURES), "bg.png"] | str join "/")
'';
screenshot = pkgs.writers.writeNuBin "screenshot" ''
let tmp_img = "/tmp/screen.png" | path join