
{"id":43142,"date":"2022-09-23T13:58:31","date_gmt":"2022-09-23T13:58:31","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=43142"},"modified":"2022-09-23T13:58:31","modified_gmt":"2022-09-23T13:58:31","slug":"simple-app-create-light-dark-wallpapers","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/09\/simple-app-create-light-dark-wallpapers\/","title":{"rendered":"Stupid Simple App to create Light &#038; Dark Wallpapers in GNOME"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-34682\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-300x300.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-600x600.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-768x768.png 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Got photo images in both light and dark style? There&#8217;s a super simple application to set them as dynamic wallpapers in GNOME 42+ desktop.<\/p>\n<p>As you may know, GNOME 42+ support light and dark wallpapers that change automatically depends on system color scheme. Ubuntu 22.04 does not support the feature, but in upcoming Ubuntu 22.10 you may add your own ones into wallpaper selection dialog:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-created.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43143\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-created-600x434.webp\" alt=\"\" width=\"600\" height=\"434\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-created-600x434.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-created-300x217.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-created-768x556.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-created.webp 1013w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>It&#8217;s easy to group your light and dark photo images as a single wallpaper selection. Just create a XML file under &#8220;<code>.local\/share\/gnome-background-properties<\/code>&#8221; (create folder if not exist), and write following rules:<\/p>\n<pre class=\"code highlight\" lang=\"xml\"><span id=\"LC1\" class=\"line\" lang=\"xml\"><span class=\"cp\">&lt;?xml version=\"1.0\"?&gt;<\/span><\/span>\r\n<span id=\"LC2\" class=\"line\" lang=\"xml\"><span class=\"cp\">&lt;!DOCTYPE wallpapers SYSTEM \"gnome-wp-list.dtd\"&gt;<\/span><\/span>\r\n<span id=\"LC3\" class=\"line\" lang=\"xml\"><span class=\"nt\">&lt;wallpapers&gt;<\/span><\/span>\r\n<span id=\"LC4\" class=\"line\" lang=\"xml\">  <span class=\"nt\">&lt;wallpaper<\/span> <span class=\"na\">deleted=<\/span><span class=\"s\">\"false\"<\/span><span class=\"nt\">&gt;<\/span><\/span>\r\n<span id=\"LC5\" class=\"line\" lang=\"xml\">    <span class=\"nt\">&lt;name&gt;TYPE_NAME_HERE<\/span><span class=\"nt\">&lt;\/name&gt;<\/span><\/span>\r\n<span id=\"LC6\" class=\"line\" lang=\"xml\">    <span class=\"nt\">&lt;filename&gt;\/PATH\/TO\/PICTURE_LIGHT<\/span><span class=\"nt\">&lt;\/filename&gt;<\/span><\/span>\r\n<span id=\"LC7\" class=\"line\" lang=\"xml\">    <span class=\"nt\">&lt;filename-dark&gt;\/PATH\/TO\/PICTURE_DARK<\/span><span class=\"nt\">&lt;\/filename-dark&gt;<\/span><\/span>\r\n<span id=\"LC8\" class=\"line\" lang=\"xml\">    <span class=\"nt\">&lt;options&gt;<\/span>zoom<span class=\"nt\">&lt;\/options&gt;<\/span><\/span>\r\n<span id=\"LC9\" class=\"line\" lang=\"xml\">    <span class=\"nt\">&lt;shade_type&gt;<\/span>solid<span class=\"nt\">&lt;\/shade_type&gt;<\/span><\/span>\r\n<span id=\"LC10\" class=\"line\" lang=\"xml\">    <span class=\"nt\">&lt;pcolor&gt;<\/span>#3465a4<span class=\"nt\">&lt;\/pcolor&gt;<\/span><\/span>\r\n<span id=\"LC11\" class=\"line\" lang=\"xml\">    <span class=\"nt\">&lt;scolor&gt;<\/span>#000000<span class=\"nt\">&lt;\/scolor&gt;<\/span><\/span>\r\n<span id=\"LC12\" class=\"line\" lang=\"xml\">  <span class=\"nt\">&lt;\/wallpaper&gt;<\/span><\/span>\r\n<span id=\"LC13\" class=\"line\" lang=\"xml\"><span class=\"nt\">&lt;\/wallpapers&gt;<\/span><\/span><\/pre>\n<p>It will then be available in the &#8220;Appearance&#8221; settings pages (<i>Ubuntu 22.10 will merge &#8216;Background&#8217; into &#8216;Appearance&#8217;<\/i>).<\/p>\n<p>To make life easier, a stupid simple application called &#8220;<b>Dynamic Wallpaper<\/b>&#8221; is created to do the job. With it, you may just type a name, select the 2 photo images and click &#8220;Create&#8221; button.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-start.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43144\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-start-600x552.webp\" alt=\"\" width=\"600\" height=\"552\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-start-600x552.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-start-300x276.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-start.webp 622w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>As mentioned above, it automatically creates a XML file with the name you typed, and saves to &#8220;<code>.local\/share\/gnome-background-properties<\/code>&#8221; directory. It also makes a copy of the photo images into &#8220;<code>.local\/share\/backgrounds<\/code>&#8220;, and refers to them in the XML file.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-done.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43145\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-done-600x552.webp\" alt=\"\" width=\"600\" height=\"552\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-done-600x552.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-done-300x276.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/dywall-done.webp 622w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>When done, you may go to &#8220;Appearance&#8221; in GNOME Control Center (aka &#8220;Settings&#8221; utility) to select that wallpapers.<\/p>\n<h3>How to Install the &#8220;Dynamic Wallpaper&#8221; app<\/h3>\n<p>The tool is available to install as Flatpak package, that works in Ubuntu 22.10+, Fedora 36+, Arch and Manjaro Linux with GNOME Desktop.<\/p>\n<p>1. First, search for and open terminal from &#8216;Activities&#8217; overview (or press Ctrl+Alt+T on Ubuntu). When it opens, run command to install Flatpak daemon:<\/p>\n<pre>sudo apt install flatpak<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-39141\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-600x229.webp\" alt=\"\" width=\"600\" height=\"229\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-600x229.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-300x115.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-768x294.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy.webp 777w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2. Next, run the command below to install the tool:<\/p>\n<pre>flatpak install https:\/\/dl.flathub.org\/repo\/appstream\/me.dusansimic.DynamicWallpaper.flatpakref<\/pre>\n<p><i>If you&#8217;re first time installing a Flatpak package, there will be also hundred MB run-time libraries to install.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/flatpak-dynamicwallpaper.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43146\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/flatpak-dynamicwallpaper-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/flatpak-dynamicwallpaper-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/flatpak-dynamicwallpaper-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/flatpak-dynamicwallpaper-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/flatpak-dynamicwallpaper.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Finally, click the top-left corner &#8216;Activities&#8217;, then search for and open the application:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/open-dynamicwallpaper.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/open-dynamicwallpaper.webp\" alt=\"\" width=\"512\" height=\"279\" class=\"aligncenter size-full wp-image-43147\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/open-dynamicwallpaper.webp 512w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/open-dynamicwallpaper-300x163.webp 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<h3>Uninstall:<\/h3>\n<p>To remove the tool, open terminal and run command:<\/p>\n<pre>flatpak uninstall --delete-data me.dusansimic.DynamicWallpaper<\/pre>\n<p>And clear useless libraries via <code>flatpak uninstall --unused<\/code>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Got photo images in both light and dark style? There&#8217;s a super simple application to set them as dynamic wallpapers in GNOME 42+ desktop. As you may know, GNOME 42+ support light and dark wallpapers that change automatically depends on system color scheme. Ubuntu 22.04 does not support the feature, but in upcoming Ubuntu 22.10 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34682,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[338],"class_list":["post-43142","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-wallpaper"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=43142"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43142\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34682"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=43142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=43142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=43142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}