I copied a script to take circular screenshots which works in GNOME, I would like to change it to work with xfce4-screenshooter, but I don't know what to change to get working in Xubuntu 16.04.5.

    output=~/$(date +%F_%H%M%S).png
    read -p "Move cursor to center and press Enter"
     eval $(xdotool getmouselocation --shell)
    read -p "Move cursor to edge and press Enter"
     eval $(xdotool getmouselocation --shell)
xfce4-screenshooter -f $temp_screenshooter

radius=$(bc <<<"sqrt(($X-$x_center)^2+($Y-$y_center)^2)")

convert $temp_screenshooter -alpha on \( +clone -channel a -evaluate multiply 0 
-draw "ellipse $x_center,$y_center $radius,$radius 0,360" \) -compose DstIn -composite -trim "$output"

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.