Added clipboard functionality to config/.script/screenshot.sh

Fixed window screenshot in config/.config/i3/config
Made terminal transparent again
This commit is contained in:
TuDatTr
2020-05-22 01:39:09 +02:00
parent 45db1378c2
commit c0d11e4b79
9 changed files with 19 additions and 8 deletions

View File

@@ -7,16 +7,19 @@ case $1 in
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png;
maim -f png $d/$filename;
dunstify -r 2 "Saved screenshot of screen in $d/$filename";
xclip -selection clipboard -t image/png -i $d/$filename
;;
"window"*)
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png
maim -u -i $(xdotool getactivewindow) -f png $d/$filename;
dunstify -r 2 "Saved screenshot of window in $d/$filename";
xclip -selection clipboard -t image/png -i $d/$filename
;;
"area"*)
dunstify -r 2 'Taking screenshot from area.';
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png;
maim -u -s -f png $d/$filename;
dunstify -r 2 "Saved in $d/$filename.";
xclip -selection clipboard -t image/png -i $d/$filename
;;
esac