From 7145a2c1ebd5aac8412c45e78e8e7d1c97435ade Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 21 Oct 2024 15:38:46 +0700 Subject: [PATCH] hyprshot: fix command line arguments --- home/modules/hyprland/hyprshot.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/home/modules/hyprland/hyprshot.nix b/home/modules/hyprland/hyprshot.nix index ee8f02a..ef77d6f 100644 --- a/home/modules/hyprland/hyprshot.nix +++ b/home/modules/hyprland/hyprshot.nix @@ -24,15 +24,16 @@ in wayland.windowManager.hyprland.settings.bind = let - saveFilename = "${saveDir}/$(date +%Y-%m-%d_%H%M%S).png"; - sattySaveCommand = ''satty --save-after-copy --filename - --fullscreen --output-filename ${saveFilename}''; + filename = "$(date +%Y-%m-%d_%H%M%S).png"; + sattyFilename = "${saveDir}/${filename}"; + sattySaveCommand = ''satty --save-after-copy --filename - --fullscreen --output-filename ${sattyFilename}''; in [ - "$mod, PRINT, exec, hyprshot -m window --filename ${saveFilename}" + "$mod, PRINT, exec, hyprshot -m window --filename ${filename} --output-folder ${saveDir}" "$mod SHIFT, PRINT, exec, hyprshot -m window --raw | ${sattySaveCommand}" - ", PRINT, exec, hyprshot -m region --filename ${saveFilename}" + ", PRINT, exec, hyprshot -m region --filename ${filename} --output-folder ${saveDir}" "SHIFT, PRINT, exec, hyprshot -m region --raw | ${sattySaveCommand}" - "ALT, PRINT, exec, hyprshot -m output --filename ${saveFilename}" + "ALT, PRINT, exec, hyprshot -m output --filename ${filename} --output-folder ${saveDir}" "ALT SHIFT, PRINT, exec, hyprshot -m output --raw | ${sattySaveCommand}" ]; };