{"id":21653,"date":"2020-04-10T20:33:28","date_gmt":"2020-04-11T00:33:28","guid":{"rendered":"https:\/\/blog.carlrobitaille.org\/?p=21653"},"modified":"2020-04-10T20:33:30","modified_gmt":"2020-04-11T00:33:30","slug":"xdotool","status":"publish","type":"post","link":"https:\/\/blog.carlrobitaille.org\/?p=21653","title":{"rendered":"xdotool"},"content":{"rendered":"\n<figure class=\"wp-block-embed-twitter wp-block-embed is-type-rich is-provider-twitter\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"en\" dir=\"ltr\">x=0;y=0;while [[ <a href=\"https:\/\/twitter.com\/search?q=%24y&amp;src=ctag&amp;ref_src=twsrc%5Etfw\">$y<\/a> -lt 500 ]] ; do xdotool mousemove &#8211;polar <a href=\"https:\/\/twitter.com\/search?q=%24x&amp;src=ctag&amp;ref_src=twsrc%5Etfw\">$x<\/a> <a href=\"https:\/\/twitter.com\/search?q=%24y&amp;src=ctag&amp;ref_src=twsrc%5Etfw\">$y<\/a> ; x=$(($x+4));y=$(($y+1)); sleep 0.01; done # Move your mouse from the command line in a perfect spiral using the xdotool and polar coordinates. <a href=\"https:\/\/twitter.com\/hashtag\/krita?src=hash&amp;ref_src=twsrc%5Etfw\">#krita<\/a> <a href=\"https:\/\/t.co\/uawzNQOqey\">pic.twitter.com\/uawzNQOqey<\/a><\/p>&mdash; Command Line Magic (@climagic) <a href=\"https:\/\/twitter.com\/climagic\/status\/1248706439696257024?ref_src=twsrc%5Etfw\">April 10, 2020<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,31,15],"tags":[],"class_list":["post-21653","post","type-post","status-publish","format-standard","hentry","category-creativite","category-infographie","category-programmation"],"_links":{"self":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts\/21653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21653"}],"version-history":[{"count":1,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts\/21653\/revisions"}],"predecessor-version":[{"id":21654,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts\/21653\/revisions\/21654"}],"wp:attachment":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}