File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 20
20
notify-send " Screenshot saved" -r 9991 -t 5000 -i " $filename "
21
21
feh -F " $filename "
22
22
23
- choice=$( echo -e " (Y) Yes\n(N) No\n(R) Retake screenshot" | rofi -dmenu -i -p " Copy screenshot ? " -l 3 )
23
+ choice=$( echo -e " (Y) Yes\n(N) No\n(X) Cut\n( R) Retake screenshot" | rofi -dmenu -i -p " Copy screenshot ? " -l 4 )
24
24
25
25
if [[ " $choice " = " (Y) Yes" ]]; then
26
26
notify-send " Screenshot copied" -r 9991 -t 5000 -i " $HOME /.local/share/icons/custom/clipboard.svg"
27
27
cat " $filename " | xclip -selection clipboard -t image/png
28
+ elif [[ " $choice " = " (X) Cut" ]]; then
29
+ notify-send " Screenshot cut" -r 9991 -t 5000 -i " $HOME /.local/share/icons/custom/clipboard.svg"
30
+ cat " $filename " | xclip -selection clipboard -t image/png
31
+ rm -rf " $filename "
28
32
elif [[ " $choice " = " (R) Retake screenshot" ]]; then
29
33
notify-send " Screenshot deleted" -r 9991 -t 5000 -i " $HOME /.local/share/icons/custom/delete.svg"
30
34
rm -rf " $filename "
You can’t perform that action at this time.
0 commit comments