home/wayland/helpers: save screenshots to config.xdg.userDirs.pictures
Some checks failed
nix-build / default-build (push) Has been cancelled
nix-build / fallarbor-build (push) Has been cancelled
nix-build / lavaridge-build (push) Has been cancelled
nix-build / mauville-build (push) Has been cancelled
nix-build / petalburg-build (push) Has been cancelled
nix-build / rustboro-build (push) Has been cancelled
nix-check / fmt-check (push) Has been cancelled
nix-check / eval-check (push) Has been cancelled

This commit is contained in:
Aly Raffauf 2024-07-21 22:39:15 -04:00
parent f32bd338a4
commit ff4478271c

View file

@ -1,4 +1,5 @@
{
config,
lib,
pkgs,
...
@ -19,7 +20,7 @@
screenshot = rec {
bin = pkgs.writeShellScript "screenshooter" ''
FILENAME=$HOME/pics/screenshots/$(date +'%Y-%m-%d-%H:%M_grim.png')
FILENAME=${config.xdg.userDirs.pictures}/screenshots/$(date +'%Y-%m-%d-%H:%M_grim.png')
if [ "$1" == "region" ]; then
${lib.getExe pkgs.grim} -g "$(${lib.getExe pkgs.slurp})" "$FILENAME"