some changes within scripts
This commit is contained in:
parent
643eaa2f9e
commit
7d6d263d71
6 changed files with 229 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue