<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>i3 FAQ - Individual question feed</title><link>https://faq.i3wm.org/questions/</link><description>Frequently asked questions and answers about the i3 window manager</description><atom:link href="http://faq.i3wm.org/feeds/question/1304/" rel="self"></atom:link><language>en</language><copyright>Copyright i3, 2012</copyright><lastBuildDate>Tue, 05 Mar 2013 10:36:26 +0000</lastBuildDate><item><title>Change workspace by moving window</title><link>https://faq.i3wm.org/question/1304/change-workspace-by-moving-window/</link><description>Hey,

in my config, i have this code to switch to another workspace:

# switch to workspace
bindsym $mod+1 workspace 1:main

bindsym $mod+2 workspace 2:surf

bindsym $mod+3 workspace 3:study

bindsym $mod+4 workspace 4:prog

...

and this code for moving a window to a workspace:

# move focused container to workspace
bindsym $mod+Shift+exclam move workspace 1:main

bindsym $mod+Shift+quotedbl move workspace 2:surf

bindsym $mod+Shift+section move workspace 3:study
...



My Quesiont is:
How can i do it, that if i move a window to another workspace, i also switch to this workspace?
Thank you guys.</description><pubDate>Tue, 05 Mar 2013 10:31:16 +0000</pubDate><guid>https://faq.i3wm.org/question/1304/change-workspace-by-moving-window/</guid></item><item><title>Answer by Michael for &lt;p&gt;Hey,&lt;/p&gt;

&lt;p&gt;in my config, i have this code to switch to another workspace:&lt;/p&gt;

&lt;h1&gt;switch to workspace&lt;/h1&gt;

&lt;p&gt;bindsym $mod+1 workspace 1:main&lt;/p&gt;

&lt;p&gt;bindsym $mod+2 workspace 2:surf&lt;/p&gt;

&lt;p&gt;bindsym $mod+3 workspace 3:study&lt;/p&gt;

&lt;p&gt;bindsym $mod+4 workspace 4:prog&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;and this code for moving a window to a workspace:&lt;/p&gt;

&lt;h1&gt;move focused container to workspace&lt;/h1&gt;

&lt;p&gt;bindsym $mod+Shift+exclam move workspace 1:main&lt;/p&gt;

&lt;p&gt;bindsym $mod+Shift+quotedbl move workspace 2:surf&lt;/p&gt;

&lt;p&gt;bindsym $mod+Shift+section move workspace 3:study
...&lt;/p&gt;

&lt;p&gt;My Quesiont is:
How can i do it, that if i move a window to another workspace, i also switch to this workspace?
Thank you guys.&lt;/p&gt;
 </title><link>https://faq.i3wm.org/question/1304/change-workspace-by-moving-window/?answer=1305#post-id-1305</link><description>Just chain the commands with a semicolon:

    bindsym $mod+Shift+exclam move workspace 1:main; workspace 1:main</description><pubDate>Tue, 05 Mar 2013 10:36:26 +0000</pubDate><guid>https://faq.i3wm.org/question/1304/change-workspace-by-moving-window/?answer=1305#post-id-1305</guid></item></channel></rss>