<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Angelo Rafael Recio on Medium]]></title>
        <description><![CDATA[Stories by Angelo Rafael Recio on Medium]]></description>
        <link>https://medium.com/@recioangelorafael?source=rss-509a8ed70b05------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2krOT-KHrR9uHWqj</url>
            <title>Stories by Angelo Rafael Recio on Medium</title>
            <link>https://medium.com/@recioangelorafael?source=rss-509a8ed70b05------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:26:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@recioangelorafael/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automate Opening TUI Apps on Their Own Terminal in I3]]></title>
            <link>https://medium.com/@recioangelorafael/automate-opening-tui-apps-on-their-own-terminal-in-i3-135563211326?source=rss-509a8ed70b05------2</link>
            <guid isPermaLink="false">https://medium.com/p/135563211326</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[i3]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Angelo Rafael Recio]]></dc:creator>
            <pubDate>Mon, 01 Dec 2025 15:43:27 GMT</pubDate>
            <atom:updated>2025-12-02T01:10:14.744Z</atom:updated>
            <content:encoded><![CDATA[<p>I made a <a href="https://medium.com/@recioangelorafael/opening-applications-in-i3-on-specific-layouts-987b39379ba8"><strong>Blog post</strong></a> on Opening Apps on i3 in a specific layout and in a particular workspace. What I did not clarify in that post is that the apps mentioned are what are called apps with <a href="https://en.wikipedia.org/wiki/Graphical_user_interface"><strong>GUI</strong></a>s, or “Graphical User Interfaces”. Applications using GUIs have vividly colored icons, menus, and other elements which can be interacted with a pointer/mouse cursor.</p><p>However, I did not cover instructions on cases where the Application may use <a href="https://en.wikipedia.org/wiki/Text-based_user_interface"><strong>TUI</strong></a><strong> </strong>or “Text-based user interface”, which this Blog will cover.</p><p>There are specific Applications that do not use GUIs and instead use them due to numerous reasons, such as the following:</p><ul><li>To use fewer system resources, especially on a machine with a minimal amount of them.</li><li>Focus on a Keyboard-centric interaction with the machine, which some may argue is faster with a mouse.</li><li>The Aesthetics of TUIs and the old BIOS design.</li></ul><p>I3 can help automate the opening of a new terminal for a dedicated TUI App. In this Blog, we will use i3 to automate the opening of a TUI App. The TUI App of Choice for this Blog is <a href="https://yazi-rs.github.io/"><strong>yazi</strong></a>, an app for file exploring. Like in my previous blog, we will also configure it to open it using a specific keybind, open it on a specific layout, and put the TUI App on a dedicated workspace.</p><ol><li><strong>Create A Bash Script to Automate the TUI Opening.</strong></li></ol><p>Create a bash script (I named mine openYazi.sh)</p><pre>nano openYazi.sh</pre><p>Then, add these lines to the file using your preferred text editor:</p><pre>#!/bin/bash<br><br>TERMINAL=&quot;xterm&quot;<br>APP_COMMAND=&quot;yazi&quot;<br>TARGET_WORKSPACE=&quot;4&quot;<br><br>i3-msg &quot;exec $TERMINAL -T &#39;yazi_tui&#39; -e $APP_COMMAND; \<br>        workspace $TARGET_WORKSPACE; \<br>        layout tabbed&quot;<br><br>echo &quot;$APP_COMMAND launched in a new $TERMINAL window, moved to workspace $TARGET_WORKSPACE, and layout set to tabbed.&quot;</pre><p>To explain the script:</p><p>This part simply tells i3 to <strong>execute</strong> a command <em>to open the terminal ‘xtem’, </em>set its title to yazi-tui, and run the yazi application inside<em>. </em>Once the new window is created, i3 is instructed to move this window to workspace 4. Finally, i3 is instructed to set the layout of the current container/workspace (which now contains the new window) to tabbed</p><p>Don’t forget to make the file executable</p><pre>sudo chmod +x /path/to/openYazi.sh</pre><p><strong>2. Bind it to a Keybind in your i3 config file.</strong></p><p>Open your i3 config file (mine is at ~/.config/i3/config) using your preferred text editor (I’ll use nano as an example)</p><pre>nano ~/.config/i3/config</pre><p>Add these lines in the middle of the file (Preferably, after the lines for ‘move focused container to workspace’).</p><pre>bindsym $mod+Shift+y exec /path/to/openYazi.sh</pre><p>For context, I have added my keybind under the comment “# Shell Scripts” as seen in this config file in my dotfile repository in GitHub called Diogenes.</p><p><a href="https://github.com/AngeloRafael02/Diogenes/blob/main/dotfiles/home/.config/i3/config">Diogenes/dotfiles/home/.config/i3/config at main · AngeloRafael02/Diogenes</a></p><p>Congratulations! You have now configured a TUI app to open via a key-bind in i3. It should look like the GIF Below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*DaMk0eqF4GHx1kwwm6sRfw.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=135563211326" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Opening Applications in i3 on Specific Layouts]]></title>
            <link>https://medium.com/@recioangelorafael/opening-applications-in-i3-on-specific-layouts-987b39379ba8?source=rss-509a8ed70b05------2</link>
            <guid isPermaLink="false">https://medium.com/p/987b39379ba8</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[i3]]></category>
            <dc:creator><![CDATA[Angelo Rafael Recio]]></dc:creator>
            <pubDate>Thu, 10 Jul 2025 06:07:33 GMT</pubDate>
            <atom:updated>2025-07-10T06:07:33.490Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Opening Applications in i3 on Specific Layouts</strong></p><p>There are 3 layouts that applications can be displayed on when using i3:</p><ul><li><strong>Split </strong>— The default and most common layout. Windows are arranged side-by-side or on top of each other.</li><li><strong>Stacked</strong> —The currently focused window is the only one visible, and every other window in that workspace is stacked behind it, hence the name.</li><li><strong>Tabbed </strong>— Similar to Stacked, but the windows are presented as tabs, similar to a web browser, and you can interact with them as such.</li></ul><p>These are the layouts a user can use to customise the application display when using i3. To toggle these layouts per application, there are the following key bindings before opening an application, provided that you have not altered these yourself:</p><ul><li><strong>Mod + e </strong>— To toggle to Split mode</li><li><strong>Mod + s</strong> — To toggle to Stacked mode</li><li><strong>Mod + w </strong>— To toggle to Tabbed mode</li></ul><p>These key bindings are short and are near each other, but it can be a hassle to always toggle between layouts, especially if you want specific workspaces, windows, or even specific applications to always be on a specific layout.</p><p>I prefer my ‘workspace1&#39; to be reserved only for terminals and TUI Apps on a Split Layout, my ‘workspace2’ to be for my preferred IDE on a Tabbed Layout, and my ‘workspace3’ only for my web browser instances on a Stacked Layout.</p><p>Having to manually switch to each workspace to toggle to a specific view and then open my application, even though it helps me become better with the keyboard, can take some time and disrupt my workflow and momentum. We can automate this process by doing a couple of steps:</p><ol><li><strong>Open up your i3 config file</strong></li></ol><p>Mine is at <em>~/.config/i3/config</em>, and i will open it via nano.</p><pre>nano ~/.config/i3/config</pre><p><strong>2. Configure your file by adding one of the following</strong></p><p>There are two workarounds you can choose:</p><p><strong>a. Automatically toggle the layout when switching from a workspace</strong></p><p>This will apply the specified layout to the workspace when you activate it. To do this, simply put the <strong>‘layout &lt;option&gt;’</strong> in your configuration:</p><pre># Workspace 1 (default tiling)<br>bindsym $mod+1 workspace 1<br><br># Workspace 2 (tabbed layout)<br>bindsym $mod+2 workspace 2; layout tabbed<br><br># Workspace 3 (stacking layout)<br>bindsym $mod+3 workspace 3; layout stacking </pre><p>This can be done to all of your workspaces. Now, every time you switch to a workspace, the layout is changed automatically as configured, until the layout is toggled again. This solution is enough if you’re like me and you only want certain workspaces to be a certain layout.</p><p><strong>b. Set certain applications to be on a certain layout only.</strong></p><p>Another workaround is to set certain applications&#39; layout as a fixed value so that when an application, such as Firefox, is opened, it will always open on a specific layout. This can be done by doing something like this in your i3 configuration:</p><pre>for_window [class=&quot;Firefox&quot;] layout stacking<br>for_window [class=&quot;code&quot;] layout tabbed</pre><p>No matter where you open your selected application, it will always open in your configured layout.</p><p><strong>BONUS: Assigning your application to open only at a selected workspace on a selected layout</strong></p><p>You can add the configurations below to set certain applications to only open on one workspace:</p><pre>assign [class=&quot;code&quot;] $ws2<br>assign [class=&quot;Firefox&quot;] $ws3<br><br>for_window [class=&quot;Firefox&quot;] layout stacking<br>for_window [class=&quot;code&quot;] layout tabbed</pre><p>The <strong>$ws2</strong> and <strong>$ws3</strong> are variables referencing your workspace numbers. As seen in this i3 config file sample:</p><p><a href="https://github.com/SkyyySi/dots-nordic/blob/master/Configurations/i3/config">dots-nordic/Configurations/i3/config at master · SkyyySi/dots-nordic</a></p><p>or like this sample of my current i3 config file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*c3mjrpg1PfvPF4-IGHD_Nw.png" /></figure><p><strong>3. Exit your config file and restart i3</strong></p><p>If you&#39;re using nano, press <strong><em>Ctrl+s</em> </strong>and then <strong><em>Ctrl+x </em></strong><em>to save </em>and exit.</p><p>Then, restart i3 by doing<strong> $mod+Shift+r</strong></p><p>If no error windows appeared after the restart, Congratulations! You have successfully configured your i3. You can now easily open your applications more ergonomically, leading to more productive work sessions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=987b39379ba8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Automate Tiling Using i3 on Linux]]></title>
            <link>https://medium.com/@recioangelorafael/how-to-automate-tiling-using-i3-on-linux-d48a6afa72d0?source=rss-509a8ed70b05------2</link>
            <guid isPermaLink="false">https://medium.com/p/d48a6afa72d0</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[i3]]></category>
            <dc:creator><![CDATA[Angelo Rafael Recio]]></dc:creator>
            <pubDate>Mon, 19 May 2025 15:24:21 GMT</pubDate>
            <atom:updated>2025-05-19T15:24:21.981Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://i3wm.org/docs/userguide.html">i3</a> is a very well-known window tiling manager and a popular choice, especially within the Linux community and among advanced users. It is my first experience on a tiling manager especially ever since I moved from Windows 10 to Arch Linux and it has been very easy to pickup especially since it has a lot of documentations in written and video forms.</p><p>With that being said, I did find it hard at first to remember the basic or default keybindings. But after a few weeks of the machine being used as my daily driver, I finally got the hang of it. I have added a lot of extra shortcuts. to make my workflow more efficient, One of which is automating the creation of multiple instances of terminals, which today I will share.</p><p>For the Example I will be sharing. We will automate the creating of 4 instances of xterm (default terminal of my distro), One in each corners such as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-4sNeGrJECnI-i-J_U7Qlg.png" /><figcaption>4 xterm instances for each corner of the machine’s display.</figcaption></figure><ol><li><strong>Create a bash file</strong> with the name of your own name of choosing. I will be naming the file as <strong>auto4xterm.sh</strong> You can create it in the terminal by using this command:</li></ol><pre>touch /home/&lt;your-user-account&gt;/Documents/auto4xterm.sh</pre><p><strong>2. While we are at it modify the recently created file</strong> to be an executable using the code below. It will prompt a password input if the user account you are using is a sudoer.</p><pre>sudo chmod +x /home/&lt;your-user-account&gt;/Documents/auto4xterm.sh</pre><p>3. Open the file with your preferred word editor. I will be using <a href="https://www.nano-editor.org/">nano</a>.</p><pre>nano /home/&lt;your-user-account&gt;/Documents/auto4xterm.sh</pre><p><strong>4. Add the following script </strong>on your file:</p><pre>#!/bin/bash<br><br>i3-msg &quot;workspace1&quot;<br>sleep 0.1 <br>i3-msg &quot;split horizontal&quot;<br>i3-msg &quot;exec xterm&quot;<br>sleep 0.1<br>i3-msg &quot;exec xterm&quot; <br>sleep 0.1<br>i3-msg &quot;split vertical&quot;<br>i3-msg &quot;exec xterm&quot;<br>sleep 0.1<br>i3-msg &quot;focus left&quot;<br>i3-msg &quot;split vertical&quot;<br>i3-msg &quot;exec xterm&quot;<br>sleep 0.1<br>i3-msg &quot;focus up&quot; #optional</pre><p>The script basically creates 4 xterm instances via i3 commands in a manner as if it was an input of the user. The algorithm of the script are as follows:</p><ul><li>Set split as Horizontal on default</li><li>Open a first xterm</li><li>Open another xterm, the next instance appears on the right of the current terminal (horizontally)</li><li>Set next window to appear as Vertical</li><li>Open a third xterm, this will appear at the bottom of the last instance.</li><li>Focus on the left which is the first xterm instance created at the start of the script.</li><li>Set next window to appear as Vertical</li><li>Open a fourth xterm, this will appear at the bottom of the first instance.</li><li>(Optional) Focus is then set back to the first created xterm</li></ul><p><strong>5. Test the Script </strong>if it works by executing the file on a terminal:</p><pre>./home/&lt;your-user-account&gt;/Documents/auto4xterm.sh</pre><p>Once it successfully runs, you have created an i3 automation script. However, we are not done yet. We have to bind this to a certain keystroke so that you don’t have to run this script on the terminal every time.</p><p><strong>6. Open the i3 config file</strong> with the following command:</p><pre>nano /home/&lt;your-user-account&gt;/.config/i3/config</pre><p><strong>NOTE: </strong>as of writing this Article, my i3 config is located the the address shown above. Yours may be different or the same depending on the version and or probably distro.</p><p><strong>7. Bind the execution of your script</strong> to your proffered key-stroke at the end of the file. I prefer using <strong>$mod+Shift+Return</strong> (windows+Shift+Enter) as my Shortcut.</p><pre>bindsym $mod+Shift+Return exec --no-startup-id /home/&lt;your-user-account&gt;/Documents/auto4xterm.sh</pre><p>8. Restart your i3 with the command <strong>$mod+Shift+c</strong> and if that returns no errors, and you <strong>$mod+Shift+Return</strong>, then <strong>Congratulations, you have just created a tiling automation using i3 on Linux.</strong></p><p>There maybe more patterns you can try such as only creating 3 instances, or setting two of them in a <a href="https://i3wm.org/docs/userguide.html#_changing_the_container_layout">tabbed mode</a> but that can easily be recreated by using currently existing i3 commands such as the one we have made Today. Enjoy your i3 experience!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d48a6afa72d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>