some changes within scripts

This commit is contained in:
pika 2025-05-04 14:43:48 +02:00
parent 643eaa2f9e
commit 7d6d263d71
6 changed files with 229 additions and 20 deletions

View file

@ -1,3 +1,14 @@
#!/usr/bin/bash
grim -g "$(slurp)" -o $HOME/.config/screenshots/ - | wl-copy -t image/png
notify-send "Screenshot copied to clipboard"
#!/usr/bin/env bash
# ─< Check if the given command exists silently >─────────────────────────────────────────
command_exists() {
command -v "$@" >/dev/null 2>&1
}
if command_exists hyprshot; then
notify-send -u low "screenshot" "Using hyprshot"
hyprshot --clipboard-only -m region
elif command_exists grim; then
notify-send -u low "screenshot" "Using grim"
grim -g "$(slurp)" -o $HOME/.config/screenshots/ - | wl-copy -t image/png
fi