Add swappy to grim script

This commit is contained in:
Stephan Raabe 2023-09-25 08:53:35 +02:00
parent 56bbdb3148
commit 062f353ce3
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Version 2.3
https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.2
--------------------------------------------------------
Screenshots: Add swappy
Version 2.2
https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.2
--------------------------------------------------------

View File

@ -21,12 +21,14 @@ choice=$(echo -e "$options" | rofi -dmenu -i -no-show-icons -l 4 -width 30 -p "T
case $choice in
$option2)
grim -g "$(slurp)" $(xdg-user-dir PICTURES)/screenshots/$(date +'%s_grim.png')
grim -g "$(slurp)" - | swappy -f -
# grim -g "$(slurp)" $(xdg-user-dir PICTURES)/screenshots/$(date +'%s_grim.png')
notify-send "Screenshot created" "Mode: Selected area"
;;
$option3)
sleep 3
grim $(xdg-user-dir PICTURES)/screenshots/$(date +'%s_grim.png')
grim - | swappy -f -
# grim $(xdg-user-dir PICTURES)/screenshots/$(date +'%s_grim.png')
notify-send "Screenshot created" "Mode: Fullscreen"
;;
esac