💥 fix(update-repo): create base directories instead of creating directories from file names

This commit is contained in:
retrozinndev
2025-08-06 15:43:31 -03:00
parent d549ad9596
commit 908a009d13
32 changed files with 87 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# This script handles taking a screenshot using the
# hyprshot tool.
# --------------
# Licensed under the MIT License
# Made by retrozinndev (João Dias)
# From https://github.com/retrozinndev/colorshell
# exit slurp and quit if slurp(region selection) is running
killall slurp && exit 0
if [[ -z $(command -v hyprshot) ]]; then
echo "[err] you don't have hyprshot installed, please install it first"
exit 1
fi
if [[ "$1" == "full" ]]; then
hyprshot -m active -m output -o "$(xdg-user-dir PICTURES)/Screenshots"
exit 0
fi
hyprshot -m region -o "$(xdg-user-dir PICTURES)/Screenshots"