<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>emre şahin's digital garden 🍃 - Scripting</title>
    <link>https://emresahin.net/categories/scripting/</link>
    <description>Posts in the Scripting category</description>
    <language>en</language>
    <managingEditor>contact@emresahin.net (Emre Şahin)</managingEditor>
    <lastBuildDate>Tue, 15 Sep 2026 19:46:32 +0000</lastBuildDate>
    <atom:link href="https://emresahin.net/categories/scripting/rss.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>Sending i3 messages from shell scripts</title>
      <published>2021-01-28T12:35:21+00:00</published>
      <updated>2021-01-28T12:35:21+00:00</updated>
      <author>Emre Şahin</author>
      <pubDate>Thu, 28 Jan 2021 12:35:21 +0000</pubDate>
      <link>https://emresahin.net/sending-i3-messages-from-shell/</link>
      <guid isPermaLink="true">https://emresahin.net/sending-i3-messages-from-shell/</guid>
      <description>It’s possible to send messages to the i3 window manager from shell scripts using i3-msg . For example: i3-msg workspace "n"</description>
      <category>Scripting</category>
      <category>i3</category>
      <category>X</category>
      <category>desktop</category>
      <category>automation</category>
      <category>shell</category>
      <category>til</category>
      <content:encoded><![CDATA[<p>It’s possible to send messages to the i3 window manager from shell scripts using <code>i3-msg</code>. For example:</p>
<pre><code class="language-bash">i3-msg workspace "n"
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Shell (Bash and Zsh) Notes</title>
      <published>2013-08-16T21:00:00+00:00</published>
      <updated>2013-08-16T21:00:00+00:00</updated>
      <author>Emre Şahin</author>
      <pubDate>Fri, 16 Aug 2013 21:00:00 +0000</pubDate>
      <link>https://emresahin.net/shell-notes/</link>
      <guid isPermaLink="true">https://emresahin.net/shell-notes/</guid>
      <description>Don’t use ~ in scripts; use $HOME I have used ~ several times in scripts, but it may not always expand as expected depending on the environment. Use $HOME to refer to the home directory; it is much more reliable and always works.</description>
      <category>Scripting</category>
      <category>CLI</category>
      <category>shell</category>
      <category>bash</category>
      <category>zsh</category>
      <category>scripting</category>
      <category>best practices</category>
      <category>til</category>
      <content:encoded><![CDATA[<h1 id="dont-use--in-scripts-use-home">Don’t use <code>~</code> in scripts; use <code>$HOME</code></h1>
<p>I have used <code>~</code> several times in scripts, but it may not always expand as expected depending on the environment. Use <code>$HOME</code> to refer to the home directory; it is much more reliable and always works.</p>]]></content:encoded>
    </item>
  </channel>
</rss>
