{"id":2330,"date":"2012-06-30T18:04:45","date_gmt":"2012-06-30T18:04:45","guid":{"rendered":"http:\/\/really.zonky.org\/?p=2330"},"modified":"2012-06-30T18:04:45","modified_gmt":"2012-06-30T18:04:45","slug":"the-custom-wallpaper-script","status":"publish","type":"post","link":"https:\/\/really.zonky.org\/?p=2330","title":{"rendered":"The Custom Wallpaper Script"},"content":{"rendered":"<p><em>Warning: This page details a shell script that I&#8217;ve produced for my own amusement; it isn&#8217;t a product. It hasn&#8217;t been tested in lots of environments, and it will take some hacking to get it to work for you. If you&#8217;re looking for something to use, move along; if you&#8217;re looking for ideas to improve a\u00a0<strong>real<\/strong> wallpaper setting program, you might want to read on.<\/em><\/p>\n<p>So <a href=\"http:\/\/really.zonky.org\/?p=2317\">elsewhere<\/a> I&#8217;ve admitted to driving a stake through the heart of GNOME&#8217;s wallpaper plugin to allow my own wallpaper script to work. Well, I could hardly do that and not announce it could I? So here goes :-<\/p>\n<ol>\n<li>It doesn&#8217;t actually set the wallpaper; it lets\u00a0<em><a href=\"http:\/\/thegraveyard.org\/hsetroot.html\">hsetroot<\/a><\/em> do that.<\/li>\n<li>It requires a parameter to determine which directory to choose &#8211; i.e.\u00a0<em>~\/lib\/backgrounds\/one<\/em>,\u00a0<em>~\/lib\/backgrounds\/two<\/em>, etc.<\/li>\n<li>It uses\u00a0<em>xrandr<\/em> to pick out the &#8220;regions&#8221; of the default screen.<\/li>\n<li>It puts portrait images on my portrait monitor, and landscape images on my landscape monitor by overlaying them onto an overall image the size of both monitors added together.<\/li>\n<li>It waits a set duration, and then repeats.<\/li>\n<\/ol>\n<p>If you&#8217;re still interested in getting a copy it&#8217;s available at <a href=\"http:\/\/zonky.org\/src\/set-random-background\">http:\/\/zonky.org\/src\/set-random-background<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Warning: This page details a shell script that I&#8217;ve produced for my own amusement; it isn&#8217;t a product. It hasn&#8217;t been tested in lots of environments, and it will take some hacking to get it to work for you. If you&#8217;re looking for something to use, move along; if you&#8217;re looking for ideas to improve <a href='https:\/\/really.zonky.org\/?p=2330' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[209],"tags":[972,978],"class_list":["post-2330","post","type-post","status-publish","format-standard","hentry","category-linux-it","tag-hsetroot","tag-set-random-background","category-209-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1f2KI-BA","_links":{"self":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/2330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2330"}],"version-history":[{"count":1,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/2330\/revisions"}],"predecessor-version":[{"id":2331,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/2330\/revisions\/2331"}],"wp:attachment":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}