<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>I3wm on Raveen Kumar</title>
    <link>https://raveenkumar.com/tags/i3wm/</link>
    <description>Recent content in I3wm on Raveen Kumar</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Raveen Kumar</copyright>
    <lastBuildDate>Fri, 30 Sep 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://raveenkumar.com/tags/i3wm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to create and move windows and containers to workspaces on the fly in i3wm</title>
      <link>https://raveenkumar.com/posts/2022-09-30-create-and-move-windows-and-containers-to-workspaces-on-the-fly/</link>
      <pubDate>Fri, 30 Sep 2022 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2022-09-30-create-and-move-windows-and-containers-to-workspaces-on-the-fly/</guid>
      <description>&lt;p&gt;I do not know why i3wm does not have this key-bind by default. But this piece of code solves it.&lt;/p&gt;&#xA;&lt;p&gt;This is the task that i want the i3wm to do,&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Move window to any existing workspace&lt;/li&gt;&#xA;&lt;li&gt;If the input workspace does not exist create a new one and move the window to it.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;    set $custom_command [r]ename workspace [m]ove to workspace [c]reate workspace [q]uit&#xA;    bindsym $mod+c mode &amp;#34;$custom_command&amp;#34;&#xA;    &#xA;    mode &amp;#34;$custom_command&amp;#34; {&#xA;        bindsym r exec i3-input -F &amp;#39;rename workspace to &amp;#34;%s&amp;#34;&amp;#39; -P &amp;#39;New name: &amp;#39;; mode &amp;#34;default&amp;#34;&#xA;        bindsym m exec &amp;#34;bash ~/.scripts/move_window_to_existing_workspace.bash&amp;#34;&#xA;        bindsym c exec i3-input -F &amp;#39;workspace &amp;#34;%s&amp;#34;&amp;#39; -P &amp;#39;New Workspace name: &amp;#39;; mode &amp;#34;default&amp;#34;&#xA;    &#xA;        bindsym q mode &amp;#34;default&amp;#34;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;code&gt;~/.scripts/move_window_to_existing_workspace.bash&lt;/code&gt; file contents&lt;/p&gt;</description>
    </item>
    <item>
      <title>Battery information in i3 status bar</title>
      <link>https://raveenkumar.com/posts/2022-09-27-battery-information-in-i3-status-bar/</link>
      <pubDate>Tue, 27 Sep 2022 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2022-09-27-battery-information-in-i3-status-bar/</guid>
      <description>&lt;p&gt;First create battery block,&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;battery 0 {&#xA;  format = &amp;quot; %status %percentage %remaining &amp;quot;&#xA;  format_down = &amp;quot; no battery &amp;quot;  &#xA;  last_full_capacity = false&#xA;  integer_battery_capacity = true  &#xA;  hide_seconds = true    &#xA;  status_chr = &amp;quot;&amp;quot;&#xA;  status_bat = &amp;quot;☉&amp;quot;&#xA;  status_full = &amp;quot;☻&amp;quot;&#xA;  low_threshold = 10&#xA;  threshold_type = percentage&#xA;  path = &amp;quot;/sys/class/power_supply/BAT0/uevent&amp;quot;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then add it to the order array,&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;order += &amp;quot;battery 0&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Make sure to check the path of the battery first. In my case it was &lt;code&gt;/sys/class/power_supply/BAT0/uevent&lt;/code&gt;. It might be different for other laptops.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
