From ff4478271c8a19b5f56fc08704a470179e496aba Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 21 Jul 2024 22:39:15 -0400 Subject: [PATCH] home/wayland/helpers: save screenshots to config.xdg.userDirs.pictures --- homeManagerModules/desktop/wayland/helpers.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/desktop/wayland/helpers.nix b/homeManagerModules/desktop/wayland/helpers.nix index 8d95bdac..aed5fc5e 100644 --- a/homeManagerModules/desktop/wayland/helpers.nix +++ b/homeManagerModules/desktop/wayland/helpers.nix @@ -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"