Add swappy to grim script
This commit is contained in:
parent
56bbdb3148
commit
062f353ce3
@ -1,3 +1,8 @@
|
|||||||
|
Version 2.3
|
||||||
|
https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.2
|
||||||
|
--------------------------------------------------------
|
||||||
|
Screenshots: Add swappy
|
||||||
|
|
||||||
Version 2.2
|
Version 2.2
|
||||||
https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.2
|
https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.2
|
||||||
--------------------------------------------------------
|
--------------------------------------------------------
|
||||||
|
@ -21,12 +21,14 @@ choice=$(echo -e "$options" | rofi -dmenu -i -no-show-icons -l 4 -width 30 -p "T
|
|||||||
|
|
||||||
case $choice in
|
case $choice in
|
||||||
$option2)
|
$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"
|
notify-send "Screenshot created" "Mode: Selected area"
|
||||||
;;
|
;;
|
||||||
$option3)
|
$option3)
|
||||||
sleep 3
|
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"
|
notify-send "Screenshot created" "Mode: Fullscreen"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user