grimblast: removed copy action from grimblast script. Instead image is always saved to disk and copied to clipboard at the same time.
This commit is contained in:
parent
5b8f6f675b
commit
230a7f661b
|
@ -18,19 +18,14 @@ let
|
||||||
|
|
||||||
file=$(date +%Y-%m-%d_%H%M%S).png
|
file=$(date +%Y-%m-%d_%H%M%S).png
|
||||||
filename=${saveDir}/original/$file
|
filename=${saveDir}/original/$file
|
||||||
${grimblast}/bin/grimblast save ${mode} "$filename"
|
${grimblast}/bin/grimblast copysave ${mode} "$filename"
|
||||||
action=$(notify-send --icon="$filename" --app-name="grimblast" --action="copy=Copy" --action="edit=Edit" --action="delete=Delete" "Grimblast" "Screenshot saved to $filename")
|
action=$(notify-send --icon="$filename" --app-name="grimblast" --action="edit=Edit" --action="delete=Delete" "Grimblast" "Screenshot saved to $filename")
|
||||||
case $action in
|
case $action in
|
||||||
"copy")
|
|
||||||
wl-copy < "$filename"
|
|
||||||
notify-send --icon="$filename" --app-name="grimblast" "Grimblast" "Screenshot copied to clipboard"
|
|
||||||
;;
|
|
||||||
"edit")
|
"edit")
|
||||||
satty --save-after-copy --filename "$filename" --fullscreen --output-filename "${saveDir}/edit/$(date +%Y-%m-%d_%H%M%S).png"
|
satty --save-after-copy --filename "$filename" --fullscreen --output-filename "${saveDir}/edit/$(date +%Y-%m-%d_%H%M%S).png"
|
||||||
;;
|
;;
|
||||||
"delete")
|
"delete")
|
||||||
rm "$filename"
|
rm "$filename"
|
||||||
notify-send --app-name="grimblast" "Grimblast" "Screenshot $filename deleted"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue