<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Irvirty</title>
    <description>The latest articles on DEV Community by Irvirty (@irvirty).</description>
    <link>https://dev.to/irvirty</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3009270%2Ff1567dce-7325-4dbc-b6ee-b61b03866fd9.png</url>
      <title>DEV Community: Irvirty</title>
      <link>https://dev.to/irvirty</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/irvirty"/>
    <language>en</language>
    <item>
      <title>Automatically change the theme in Ubuntu depending on the time of day</title>
      <dc:creator>Irvirty</dc:creator>
      <pubDate>Thu, 16 Oct 2025 05:15:18 +0000</pubDate>
      <link>https://dev.to/irvirty/automatically-change-the-theme-in-ubuntu-based-on-the-time-of-day-3023</link>
      <guid>https://dev.to/irvirty/automatically-change-the-theme-in-ubuntu-based-on-the-time-of-day-3023</guid>
      <description>&lt;p&gt;Steps:&lt;/p&gt;

&lt;h2&gt;
  
  
  Download the Gnome extension:
&lt;/h2&gt;

&lt;p&gt;Night Theme Switcher - &lt;a href="https://nightthemeswitcher.romainvigier.fr/" rel="noopener noreferrer"&gt;https://nightthemeswitcher.romainvigier.fr/&lt;/a&gt; or &lt;a href="https://extensions.gnome.org/extension/2236/night-theme-switcher/" rel="noopener noreferrer"&gt;https://extensions.gnome.org/extension/2236/night-theme-switcher/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Create 2 bash scripts:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;day.sh&lt;/strong&gt; with this code to change the theme:&lt;br&gt;
&lt;code&gt;gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-lgiht';&lt;br&gt;
gsettings set org.gnome.desktop.interface color-scheme 'prefer-light';&lt;/code&gt;  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;night.sh&lt;/strong&gt;:&lt;br&gt;
&lt;code&gt;gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark';&lt;br&gt;
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'&lt;/code&gt;  &lt;/p&gt;

&lt;h2&gt;
  
  
  In the extension settings "Commands" insert these scripts to execute:
&lt;/h2&gt;

&lt;p&gt;For sunrise: &lt;code&gt;bash /path/day.sh&lt;/code&gt;&lt;br&gt;
For sunset: &lt;code&gt;bash /path/night.sh&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Done.
&lt;/h2&gt;

</description>
      <category>darkmode</category>
      <category>ubuntu</category>
      <category>gnome</category>
      <category>lightmode</category>
    </item>
  </channel>
</rss>
