<?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>Desktop-Environment on Raveen Kumar</title>
    <link>https://raveenkumar.com/tags/desktop-environment/</link>
    <description>Recent content in Desktop-Environment 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/desktop-environment/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>
  </channel>
</rss>
