This commit is contained in:
Stephan Raabe 2024-03-14 17:27:15 +01:00
parent 93476ecd9d
commit 641073201c

View File

@ -21,12 +21,16 @@ choice=$(echo -e "$options" | rofi -dmenu -replace -config ~/dotfiles/rofi/confi
case $choice in case $choice in
$option2) $option2)
grim -g "$(slurp)" - | swappy -f - grim -g "$(slurp)" "$DIR$NAME"
notify-send "Screenshot created" "Mode: Selected area" xclip -selection clipboard -t image/png -i "$DIR$NAME"
notify-send "Screenshot created and copied to clipboard" "Mode: Selected area"
swappy -f "$DIR$NAME"
;; ;;
$option3) $option3)
sleep 3 sleep 3
grim - | swappy -f - grim "$DIR$NAME"
notify-send "Screenshot created" "Mode: Fullscreen" xclip -selection clipboard -t image/png -i "$DIR$NAME"
notify-send "Screenshot created and copied to clipboard" "Mode: Fullscreen"
swappy -f "$DIR$NAME"
;; ;;
esac esac