<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>wezterm &amp;mdash; Build stuff; Break stuff; Have fun!</title>
    <link>https://barfooz.xyz/tag:wezterm</link>
    <description>barfooz.xyz</description>
    <pubDate>Wed, 22 Apr 2026 08:43:53 +0000</pubDate>
    <image>
      <url>https://i.snap.as/btoNrLSF.png</url>
      <title>wezterm &amp;mdash; Build stuff; Break stuff; Have fun!</title>
      <link>https://barfooz.xyz/tag:wezterm</link>
    </image>
    <item>
      <title>Open Claude Code inside a split pane in Wezterm </title>
      <link>https://barfooz.xyz/i-wrote-about-how-i-use-claude-code-in-wezterm-in-this-post?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[I wrote about how I use Claude Code in Wezterm in this Post.&#xA;&#xA;!--more--&#xA;&#xA;Since then, I&#39;ve improved it a bit. I introduced the YOLO mode --dangerously-skip-permissions as default when I open CC, and I need to split the window pane on my desktop monitor to 1/3 and on my laptop monitor to 1/2.&#xA;&#xA;The split introduced a new function, which is called on keypress.&#xA;local function splitforclaude()&#xA;&#x9;local screen = wezterm.gui and wezterm.gui.screens().active.name or &#34;&#34;&#xA;&#x9;local percent = 50&#xA;&#xA;&#x9;if screen == EXTERNALMONITOR then&#xA;&#x9;&#x9;percent = 33&#xA;&#x9;end&#xA;&#xA;&#x9;return act.SplitPane({&#xA;&#x9;&#x9;direction = &#34;Right&#34;,&#xA;&#x9;&#x9;command = { args = { &#34;bash&#34;, &#34;-lc&#34;, &#34;claude --dangerously-skip-permissions&#34; } },&#xA;&#x9;&#x9;size = { Percent = percent },&#xA;&#x9;})&#xA;end&#xA;&#xA;EXTERNALMONITOR is the name of the external monitor. The name you will get from opening the Debug Overlay and calling wezterm.gui.screens().&#xA;&#xA;And the key settings are:&#xA;config.keys = {&#xA;  -- ...&#xA;&#x9;{&#xA;&#x9;&#x9;key = &#34;Enter&#34;,&#xA;&#x9;&#x9;mods = &#34;LEADER&#34;,&#xA;&#x9;&#x9;action = wezterm.actioncallback(function(window, pane)&#xA;&#x9;&#x9;&#x9;window:performaction(splitforclaude(), pane)&#xA;&#x9;&#x9;end),&#xA;&#x9;},&#xA;  -- ...&#xA;}&#xA;&#xA;Now I hit leader+enter and CC opens in a 1/3 or 1/2 split depending on the display. :)&#xA;---  &#xA;57 of #100DaysToOffload  &#xA;#log #wezterm #code #dev  &#xA;Thoughts? a href=&#34;https://remark.as/p/barfooz.xyz/i-wrote-about-how-i-use-claude-code-in-wezterm-in-this-post&#34;Discuss.../a]]&gt;</description>
      <content:encoded><![CDATA[<p>I wrote about how I use Claude Code in Wezterm in this <a href="https://barfooz.xyz/wezterm-config-to-open-claude-code-in-a-sidebar">Post</a>.</p>



<p>Since then, I&#39;ve improved it a bit. I introduced the YOLO mode <code>--dangerously-skip-permissions</code> as default when I open CC, and I need to split the window pane on my desktop monitor to 1/3 and on my laptop monitor to ½.</p>

<p>The split introduced a new function, which is called on keypress.</p>

<pre><code class="language-lua">local function split_for_claude()
	local screen = wezterm.gui and wezterm.gui.screens().active.name or &#34;&#34;
	local percent = 50

	if screen == EXTERNAL_MONITOR then
		percent = 33
	end

	return act.SplitPane({
		direction = &#34;Right&#34;,
		command = { args = { &#34;bash&#34;, &#34;-lc&#34;, &#34;claude --dangerously-skip-permissions&#34; } },
		size = { Percent = percent },
	})
end

</code></pre>

<p><code>EXTERNAL_MONITOR</code> is the name of the external monitor. The name you will get from opening the <a href="https://wezterm.org/config/lua/wezterm.gui/screens.html">Debug Overlay</a> and calling <code>wezterm.gui.screens()</code>.</p>

<p>And the key settings are:</p>

<pre><code class="language-lua">config.keys = {
  -- ...
	{
		key = &#34;Enter&#34;,
		mods = &#34;LEADER&#34;,
		action = wezterm.action_callback(function(window, pane)
			window:perform_action(split_for_claude(), pane)
		end),
	},
  -- ...
}
</code></pre>

<p>Now I hit <code>leader+enter</code> and CC opens in a 1/3 or ½ split depending on the display. :)</p>

<hr/>

<p><strong>57</strong> of <a href="https://barfooz.xyz/tag:100DaysToOffload" class="hashtag"><span>#</span><span class="p-category">100DaysToOffload</span></a><br/>
<a href="https://barfooz.xyz/tag:log" class="hashtag"><span>#</span><span class="p-category">log</span></a> <a href="https://barfooz.xyz/tag:wezterm" class="hashtag"><span>#</span><span class="p-category">wezterm</span></a> <a href="https://barfooz.xyz/tag:code" class="hashtag"><span>#</span><span class="p-category">code</span></a> <a href="https://barfooz.xyz/tag:dev" class="hashtag"><span>#</span><span class="p-category">dev</span></a><br/>
<em>Thoughts? <a href="https://remark.as/p/barfooz.xyz/i-wrote-about-how-i-use-claude-code-in-wezterm-in-this-post">Discuss...</a></em></p>
]]></content:encoded>
      <guid>https://barfooz.xyz/i-wrote-about-how-i-use-claude-code-in-wezterm-in-this-post</guid>
      <pubDate>Sun, 30 Nov 2025 12:41:15 +0000</pubDate>
    </item>
    <item>
      <title>WEZterm config to open Claude Code in a sidebar</title>
      <link>https://barfooz.xyz/wezterm-config-to-open-claude-code-in-a-sidebar?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[There is a post about how I migrated to WEZterm, which I still need to write at some time in the future.&#xA;Preliminary skirmish&#xA;But let’s assume I already wrote the post. I’m really happy with the terminal. I needed to migrate away from Alacritty+Tmux because of the lack of Windows support from Tmux. Overall it was a good decision to migrate. The only thing that currently bothers me is that there is a “bug” where the font rendering misses some characters but brings them back on config reload. (cmd+r)&#xA;Here starts the main post&#xA;After starting my journey with Claude Code, I needed a handy shortcut to open CC in a 1/3 split pane. Here is the part of my config, which is doing the Job:&#xA;config.keys = {&#xA;        --...&#xA;&#x9;{&#xA;&#x9;&#x9;key = &#34;c&#34;,&#xA;&#x9;&#x9;mods = &#34;LEADER|SHIFT&#34;,&#xA;&#x9;&#x9;action = act.SplitPane({&#xA;&#x9;&#x9;&#x9;direction = &#34;Right&#34;,&#xA;&#x9;&#x9;&#x9;command = { args = { &#34;bash&#34;, &#34;-lc&#34;, &#34;claude&#34; } },&#xA;&#x9;&#x9;&#x9;size = { Percent = 33 },&#xA;&#x9;&#x9;}),&#xA;&#x9;},&#xA;&#x9;--...&#xA;}&#xA;&#xA;You&#39;ll hit leader &amp; shift+c and it will open a 1/3 sidebar with Claude Code in it. Done.&#xA;&#xA;For me it is a nice little helper. Hopefully for someone else too. Let me know if this was helpful.&#xA;---  &#xA;37 of #100DaysToOffload  &#xA;#log #dev #claude #wezterm  &#xA;Thoughts? a href=&#34;https://remark.as/p/barfooz.xyz/wezterm-config-to-open-claude-code-in-a-sidebar&#34;Discuss.../a]]&gt;</description>
      <content:encoded><![CDATA[<p>There is a post about how I migrated to WEZterm, which I still need to write at some time in the future.</p>

<h2 id="preliminary-skirmish" id="preliminary-skirmish">Preliminary skirmish</h2>

<p>But let’s assume I already wrote the post. I’m really happy with the terminal. I needed to migrate away from Alacritty+Tmux because of the lack of Windows support from Tmux. Overall it was a good decision to migrate. The only thing that currently bothers me is that there is a “bug” where the font rendering misses some characters but brings them back on config reload. (cmd+r)</p>

<h2 id="here-starts-the-main-post" id="here-starts-the-main-post">Here starts the main post</h2>

<p>After starting my journey with Claude Code, I needed a handy shortcut to open CC in a 1/3 split pane. Here is the part of my config, which is doing the Job:</p>

<pre><code class="language-lua">config.keys = {
        --...
	{
		key = &#34;c&#34;,
		mods = &#34;LEADER|SHIFT&#34;,
		action = act.SplitPane({
			direction = &#34;Right&#34;,
			command = { args = { &#34;bash&#34;, &#34;-lc&#34;, &#34;claude&#34; } },
			size = { Percent = 33 },
		}),
	},
	--...
}
</code></pre>

<p>You&#39;ll hit <code>leader &amp; shift+c</code> and it will open a 1/3 sidebar with Claude Code in it. Done.</p>

<p>For me it is a nice little helper. Hopefully for someone else too. Let me know if this was helpful.</p>

<hr/>

<p><strong>37</strong> of <a href="https://barfooz.xyz/tag:100DaysToOffload" class="hashtag"><span>#</span><span class="p-category">100DaysToOffload</span></a><br/>
<a href="https://barfooz.xyz/tag:log" class="hashtag"><span>#</span><span class="p-category">log</span></a> <a href="https://barfooz.xyz/tag:dev" class="hashtag"><span>#</span><span class="p-category">dev</span></a> <a href="https://barfooz.xyz/tag:claude" class="hashtag"><span>#</span><span class="p-category">claude</span></a> <a href="https://barfooz.xyz/tag:wezterm" class="hashtag"><span>#</span><span class="p-category">wezterm</span></a><br/>
<em>Thoughts? <a href="https://remark.as/p/barfooz.xyz/wezterm-config-to-open-claude-code-in-a-sidebar">Discuss...</a></em></p>
]]></content:encoded>
      <guid>https://barfooz.xyz/wezterm-config-to-open-claude-code-in-a-sidebar</guid>
      <pubDate>Sun, 12 Oct 2025 09:45:51 +0000</pubDate>
    </item>
  </channel>
</rss>