{"id":273867,"date":"2016-02-09T11:45:03","date_gmt":"2016-02-09T08:45:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=273867"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=273867","title":{"rendered":"himawari8 wallpaper \u0434\u043b\u044f linux [xfce4]"},"content":{"rendered":"<p>       <a href=\"http:\/\/tproger.ru\/tools\/himawari-8-downloader\/\">\u041f\u043e\u0447\u0438\u0442\u0430\u043b<\/a> \u044f \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u0440\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 PowerShell, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u0432\u0438\u043b \u0444\u043e\u0442\u043a\u0438 \u0441\u043e \u0441\u043f\u0443\u0442\u043d\u0438\u043a\u0430 \u043e\u0431\u043e\u044f\u043c\u0438 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b. \u041f\u043e\u0433\u0443\u0433\u043b\u0438\u0432, \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0434 linux \u2014 \u043a\u043e\u044f \u043d\u0438\u0436\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/989\/492\/ca5\/989492ca56594233804571ef5eb61ece.png\"\/><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/h2>\n<p>  \u041f\u043e \u043c\u0435\u043b\u043e\u0447\u0438: \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u044f\u043c\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u043e\u0432\u044b\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0448\u0430\u043d\u0441 \u043d\u0430\u0442\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0443\u0441\u0442\u043e\u0442\u0443. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u044f \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0444\u043e\u0442\u043a\u0438 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0434\u043d\u044f: <code>nowday=$(date +%d -d -1day)<\/code><\/p>\n<p>  \u0421\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u043a \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u0440\u0430\u0437 \u0432 \u0434\u0435\u0441\u044f\u0442\u044c \u043c\u0438\u043d\u0443\u0442 \u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443<\/p>\n<p>  <code>nowtime=$(date +%H%M | sed -r 's\/.$\/\/')<br \/>  nowtime=$nowtime&quot;000&quot;<br \/>  <\/code><\/p>\n<p>  \u041e\u0441\u043e\u0431\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0442\u0443\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435: \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043e\u0431\u043e\u0435\u0432 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b. <\/p>\n<h3>\u0414\u043b\u044f xfce4<\/h3>\n<p>  <\/p>\n<h4>\u041e\u0431\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441<\/h4>\n<p>  <code>xfconf-query -c xfce4-desktop -p %desktoppath% -s %image%<\/code><\/p>\n<h4>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432<\/h4>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0448\u044c <code>\/home\/user\/.config\/xfce4\/xfconf\/xfce-perchannel-xml\/xfce4-desktop.xml<\/code><\/p>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0442\u0430\u043c \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430:<\/p>\n<pre><code class=\"xml\">&lt;channel name=&quot;xfce4-desktop&quot; version=&quot;1.0&quot;&gt;   &lt;property name=&quot;backdrop&quot; type=&quot;empty&quot;&gt;     &lt;property name=&quot;screen0&quot; type=&quot;empty&quot;&gt;       &lt;property name=&quot;monitorVGA-0&quot; type=&quot;empty&quot;&gt;         &lt;property name=&quot;workspace0&quot; type=&quot;empty&quot;&gt;           &lt;property name=&quot;color-style&quot; type=&quot;int&quot; value=&quot;2&quot;\/&gt;           &lt;property name=&quot;image-style&quot; type=&quot;int&quot; value=&quot;5&quot;\/&gt;           &lt;property name=&quot;last-image&quot; type=&quot;string&quot; value=&quot;\/home\/user\/pictures\/my_standart_wallpaper.png&quot;\/&gt;         &lt;\/property&gt;       &lt;\/property&gt;     &lt;\/property&gt;   &lt;\/property&gt; &lt;\/channel&gt; <\/code><\/pre>\n<p>  \u0417\u043d\u0430\u0447\u0438\u0442, \u0432\u043c\u0435\u0441\u0442\u043e <code>%desktoppath%<\/code> \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c <code>\/backdrop\/screen0\/monitorVGA-0\/workspace0\/last-image<\/code><\/p>\n<p>  \u041d\u0443, \u0430 <code>%image%<\/code> \u2014 \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u043d\u043e\u0432\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<h3>\u0414\u0440\u0443\u0433\u0438\u0435 X-\u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h3>\n<p>  ?<\/p>\n<h2>\u041a\u043e\u0434<\/h2>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u043d\u0430 bash<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">#!\/bin\/bash  delay=900 # seconds  while true do  \twidth=550 \tlevel='4d' #Level can be 4d, 8d, 16d, 20d  \tnumblocks=4 #this apparently corresponds directly with the level, keep this exactly the same as level without the 'd'  \tnowtime=$(date +%H%M | sed -r 's\/.$\/\/') \tnowtime=$nowtime&quot;000&quot; \tnowyear=$(date +%Y) \tnowmonth=$(date +%m) \tnowday=$(date +%d -d -1day)  \tworkdir=&quot;\/home\/cutemaj\/.earthwallpaper&quot;  \tif [ ! -d $workdir ]; then \t\tmkdir -p $workdir \tfi  \tcd $workdir  \toutfile=&quot;latest.jpg&quot;   \tsite=&quot;http:\/\/himawari8-dl.nict.go.jp\/himawari8\/img\/D531106&quot;  \turl=&quot;$site\/$level\/$width\/$nowyear\/$nowmonth\/$nowday\/$nowtime&quot; \tdash=&quot;_&quot;  \t\tfor (( i=0; i&lt;=$numblocks-1; ++i)) \t\tdo \t\t    for (( j=0; j&lt;=$numblocks-1; ++j)) \t\t\tdo \t\t\t\tpartialimageurl=&quot;$url$dash$i$dash$j.png&quot; \t\t\t\techo Downloading from $partialimageurl to $workdir \t\t\t    wget $partialimageurl -P $workdir \t\t\tdone \t\t\tconvert -append *_*_*.png img_$i.png \t\t\trm *_*_*.png \t\tdone \tconvert +append img_*.png out.png \trm img_*.png  \txfconf-query -c xfce4-desktop -p \/backdrop\/screen0\/monitorVGA-0\/workspace0\/last-image -s $workdir\/out.png   \tsleep $delay done <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h2>\u041f\u043e\u0445\u043e\u0436\u0435\u0435<\/h2>\n<p>  \u0421 \u0430\u0432\u0442\u043e\u0440\u0430\u043c\u0438 \u043d\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043b\u0441\u044f, \u043d\u043e, \u0434\u0443\u043c\u0430\u044e, \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043e\u043d\u0438 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u0433\u0440\u0443\u0437\u0438\u043b\u0438.<\/p>\n<ul>\n<li><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=ru.cd.himawari\">\u041e\u0431\u043e\u0438 \u043f\u043e\u0434 Android<\/a><\/li>\n<li><a href=\"https:\/\/launchpad.net\/~realtime.sunlight.wallpaper\/+archive\/ubuntu\/rsw\">\u041f\u043e\u0445\u043e\u0436\u0430\u044f \u0442\u0435\u043c\u0430 \u043f\u043e\u0434 Ubuntu<\/a><\/li>\n<li><a href=\"https:\/\/gist.github.com\/vadim8kiselev\/d70c90a1fead01481dfe\">\u041d\u0430 Python<\/a><\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/276845\/\"> https:\/\/habrahabr.ru\/post\/276845\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <a href=\"http:\/\/tproger.ru\/tools\/himawari-8-downloader\/\">\u041f\u043e\u0447\u0438\u0442\u0430\u043b<\/a> \u044f \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u0440\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 PowerShell, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u0432\u0438\u043b \u0444\u043e\u0442\u043a\u0438 \u0441\u043e \u0441\u043f\u0443\u0442\u043d\u0438\u043a\u0430 \u043e\u0431\u043e\u044f\u043c\u0438 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b. \u041f\u043e\u0433\u0443\u0433\u043b\u0438\u0432, \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0434 linux \u2014 \u043a\u043e\u044f \u043d\u0438\u0436\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/989\/492\/ca5\/989492ca56594233804571ef5eb61ece.png\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-273867","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/273867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273867"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/273867\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}