Files
hyprdots/hypr/screenshot
2022-11-09 16:00:53 +05:30

9 lines
279 B
Bash
Executable File

#!/bin/sh
x="Screenshot copied to clipboard"
[ "$*" = "fullclip" ] && grim - | xclip -selection clipboard -t image/png
[ "$*" = "fullsave" ] && grim && x="Screenshot saved"
[ "$*" = "selclip" ] && grim -g "$(slurp)" - | xclip -selection clipboard -t image/png
notify-send "$x"