<?xml version="1.0" encoding="utf-8" standalone="yes"?><?xml-stylesheet href="/pretty-feed-v3.xsl" type="text/xsl"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>macos on Hugo van Kemenade</title><link>https://hugovk.dev/tags/macos/</link><description>Recent content in macos on Hugo van Kemenade</description><generator>Hugo</generator><language>en</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-sa/4.0/"&gt;{{&lt; icon "cc" &gt;}}&amp;hairsp;{{&lt; icon "cc-by" &gt;}}&amp;hairsp;{{&lt; icon "cc-sa" &gt;}}&lt;/a&gt;&amp;nbsp;Hugo van Kemenade&lt;br&gt;&lt;p class="text-xs text-neutral-500 dark:text-neutral-400"&gt;Powered by &lt;a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://gohugo.io/" target="_blank" rel="noopener noreferrer"&gt;Hugo&lt;/a&gt; &amp;amp; &lt;a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://github.com/jpanther/congo" target="_blank" rel="noopener noreferrer"&gt;Congo&lt;/a&gt; &amp;amp; &lt;a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://hugovk.dev" target="_blank" rel="noopener noreferrer"&gt;Hugo&lt;/a&gt;&lt;/p&gt;</copyright><lastBuildDate>Wed, 28 Oct 2026 15:37:15 +0000</lastBuildDate><atom:link href="https://hugovk.dev/tags/macos/index.xml" rel="self" type="application/rss+xml"/><item><title>Change macOS light and dark mode via command line</title><link>https://hugovk.dev/blog/2026/macos-light-and-dark/</link><pubDate>Wed, 28 Oct 2026 15:37:15 +0000</pubDate><guid>https://hugovk.dev/blog/2026/macos-light-and-dark/</guid><description>&lt;p&gt;I normally have my macOS set to dark mode because developer, but sometimes I need to&#10;take screenshots for talk slides. For readability and accessibility, it&amp;rsquo;s&#10;&lt;a href="https://www.w3.org/WAI/teach-advocate/accessible-presentations/"&gt;important to have enough contrast&lt;/a&gt;,&#10;and often dark text on a light background is best.&lt;/p&gt;&#10;&lt;h2 id="aliases" class="relative group"&gt;Aliases &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#aliases" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;Rather than having to click 🍎 &amp;gt; System Settings… &amp;gt; Appearance &amp;gt; Light, here&amp;rsquo;s a couple&#10;of aliases to do it from the command line:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;alias&lt;/span&gt; light-mode&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;osascript -e &amp;#34;tell app \&amp;#34;System Events\&amp;#34; to tell appearance preferences to set dark mode to false&amp;#34;&amp;#39;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;alias&lt;/span&gt; dark-mode&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;osascript -e &amp;#34;tell app \&amp;#34;System Events\&amp;#34; to tell appearance preferences to set dark mode to true&amp;#34;&amp;#39;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then I can type &lt;code&gt;light-mode&lt;/code&gt;, take the screenshot, and then go back with &lt;code&gt;dark-mode&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h2 id="see-also" class="relative group"&gt;See also &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#see-also" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;Some info on accessible presentations:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;a href="https://www.gov.wales/how-create-accessible-powerpoint-presentations"&gt;GOV.WALES: How to create accessible PowerPoint presentations&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;a href="https://www.w3.org/WAI/teach-advocate/accessible-presentations/"&gt;W3C Web Accessibility Initiative: Making Events Accessible&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;&lt;small&gt;Header photo: Snow basketball today&#10;(&lt;a target="_blank" rel="noopener noreferrer" href="https://creativecommons.org/licenses/by-nc-sa/2.0/"&gt;CC&#10;BY-NC-SA 2.0&lt;/a&gt;&#10;&lt;a href="https://www.flickr.com/photos/hugovk/3115549385/"&gt;Hugo van Kemenade&lt;/a&gt;).&lt;/small&gt;&lt;/p&gt;&#10;</description></item></channel></rss>