hyprshot: fix command line arguments

This commit is contained in:
Tigor Hutasuhut 2024-10-21 15:38:46 +07:00
parent 268ce7c7db
commit 7145a2c1eb

View file

@ -24,15 +24,16 @@ in
wayland.windowManager.hyprland.settings.bind = wayland.windowManager.hyprland.settings.bind =
let let
saveFilename = "${saveDir}/$(date +%Y-%m-%d_%H%M%S).png"; filename = "$(date +%Y-%m-%d_%H%M%S).png";
sattySaveCommand = ''satty --save-after-copy --filename - --fullscreen --output-filename ${saveFilename}''; sattyFilename = "${saveDir}/${filename}";
sattySaveCommand = ''satty --save-after-copy --filename - --fullscreen --output-filename ${sattyFilename}'';
in 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}" "$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}" "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}" "ALT SHIFT, PRINT, exec, hyprshot -m output --raw | ${sattySaveCommand}"
]; ];
}; };