<?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/3099/" rel="self"></atom:link><language>en</language><copyright>Copyright i3, 2012</copyright><lastBuildDate>Tue, 31 Dec 2013 02:42:48 +0000</lastBuildDate><item><title>Issue: moving a window creates a new workspace</title><link>https://faq.i3wm.org/question/3099/issue-moving-a-window-creates-a-new-workspace/</link><description>Hello,

I just installed i3 and ran into an issue with moving a window (leaf??) to another workspace located on another monitor. 

**example**: workspace 1 (monitor 1) has a window (leaf) I want to move to workspace 2 (monitor 2). Focused on the window I want moved, mod+shift+2 creates workspace 2 on monitor 1 instead of sending it to the correct workspace on monitor 2. Now I have two instances of workspace 2 and my hot keys can only access the original workspace 2 (monitor 2) not the newly created one from the move.

Is this a known issue or anything that can be done to correct this? 

**System info:**

 - OS: Linux Mint 14 / 64bit / 3.5.0-40-generic
 - i3: 4.6 (installed from the repose on the i3 site)
 - Two monitors
 - 9500gt (driver: nvidia-experimental-310)


&lt;code&gt;

    # This file has been auto-generated by i3-config-wizard(1).
    # It will not be overwritten, so edit it as you like.
    #
    # Should you change your keyboard layout somewhen, delete
    # this file and re-run i3-config-wizard(1).
    #
    
    # i3 config file (v4)
    #
    # 
    
    set $mod Mod1
    
    # font for window titles. ISO 10646 = Unicode
    font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
    
    # Use Mouse+$mod to drag floating windows to their wanted position
    floating_modifier $mod
    
    # start a terminal
    bindsym $mod+Return exec urxvt #i3-sensible-terminal
    
    # kill focused window
    bindsym $mod+Shift+Q kill
    
    # start dmenu (a program launcher)
    #bindsym ctrl+space exec dmenu_run
    bindsym ctrl+space exec dmenu_run  -nb '#111111' -nf '#555555' -sb '#111111' -sf '#7d7875'
    
    #####################################
    # Make the currently focused window a scratchpad
    bindsym $mod+Shift+minus move scratchpad
    
    # Show the first scratchpad window
    bindsym $mod+minus scratchpad show
    
    # new window default border
    #new_window pixel 3
    #new_float pixel
    
    #colors
    client.focused                  #9fbc00 #9fbc00  #111111
    
    #CHANGING BORDER STYLE
    bindsym $mod+t border normal
    bindsym $mod+y border pixel 4
    bindsym $mod+u border none
    
    #Auto Start
    exec --no-startup-id nitrogen --restore
    exec --no-startup-id xfce4-volumed
    exec --no-startup-id xfsettingsd
    exec --no-startup-id xscreensaver
    
    #Floating apps
    for_window [class="Guake"] floating enable
    
    # change focus
    bindsym $mod+h focus left
    bindsym $mod+j focus down
    bindsym $mod+k focus up
    bindsym $mod+l focus right
    
    # alternatively, you can use the cursor keys:
    bindsym $mod+Left focus left
    bindsym $mod+Down focus down
    bindsym $mod+Up focus up
    bindsym $mod+Right focus right
    
    # move focused window
    bindsym $mod+Shift+h move left
    bindsym $mod+Shift+j move down
    bindsym $mod+Shift+k move up
    bindsym $mod+Shift+l move right
    
    # alternatively, you can use the cursor keys:
    bindsym $mod+Shift+Left move left
    bindsym $mod+Shift+Down move down
    bindsym $mod+Shift+Up move up
    bindsym $mod+Shift+Right move right
    
    # split in horizontal orientation
    bindsym $mod+Shift+v split h
    
    # split in vertical orientation
    bindsym $mod+v split v
    
    # enter fullscreen mode for the focused container
    bindsym $mod+f fullscreen
    
    # change container layout (stacked, tabbed, default)
    bindsym $mod+s layout stacking
    bindsym $mod+w layout tabbed
    bindsym $mod+e layout default
    
    # toggle tiling / floating
    bindsym $mod+Shift+space floating toggle
    
    # change focus between tiling / floating windows
    bindsym $mod+space focus mode_toggle
    
    # focus the parent container
    bindsym $mod+a focus parent
    
    # focus the child container
    #bindcode $mod+d focus child
    
    # switch to workspace
    bindsym $mod+1 workspace 1 
    bindsym $mod+2 workspace 2 
    bindsym $mod+3 workspace 3
    bindsym $mod+4 workspace 4
    bindsym $mod+5 workspace 5
    bindsym $mod+6 workspace 6
    bindsym $mod+7 workspace 7
    bindsym $mod+8 workspace 8
    bindsym $mod+9 workspace 9
    bindsym $mod+0 workspace 10
    
    # move focused container to workspace
    bindsym $mod+Shift+exclam move container to workspace 1
    bindsym $mod+Shift+at move container to workspace 2
    bindsym $mod+Shift+numbersign move container to workspace 3
    bindsym $mod+Shift+dollar move container to workspace 4
    bindsym $mod+Shift+percent move container to workspace 5
    bindsym $mod+Shift+asciicircum move container to workspace 6
    bindsym $mod+Shift+ampersand move container to workspace 7
    bindsym $mod+Shift+asterisk move container to workspace 8
    bindsym $mod+Shift+parenleft move container to workspace 9
    bindsym $mod+Shift+parenright move container to workspace 10
    
    # reload the configuration file
    bindsym $mod+Shift+C reload
    # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
    bindsym $mod+Shift+R restart
    # exit i3 (logs you out of your X session)
    bindsym $mod+Shift+E exit
    
    # resize window (you can also use the mouse for that)
    mode "resize" {
            # These bindings trigger as soon as you enter the resize mode
    
            # Pressing left will shrink the window’s width.
            # Pressing right will grow the window’s width.
            # Pressing up will shrink the window’s height.
            # Pressing down will grow the window’s height.
            bindsym h resize shrink width 10 px or 10 ppt
            bindsym j resize grow height 10 px or 10 ppt
            bindsym k resize shrink height 10 px or 10 ppt
            bindsym l resize grow width 10 px or 10 ppt
    
            # same bindings, but for the arrow keys
            bindsym 113 resize shrink width 10 px or 10 ppt
            bindsym 116 resize grow height 10 px or 10 ppt
            bindsym 111 resize shrink height 10 px or 10 ppt
            bindsym 114 resize grow width 10 px or 10 ppt
    
            # back to normal: Enter or Escape
            bindsym Return mode "default"
            bindsym Escape mode "default"
    }
    
    bindsym $mod+r mode "resize"
    
    # Start i3bar to display a workspace bar (plus the system information i3status
    # finds out, if available)
    bar {
            status_command i3status
    	position top
    }

&lt;/code&gt;</description><pubDate>Thu, 26 Dec 2013 02:38:43 +0000</pubDate><guid>https://faq.i3wm.org/question/3099/issue-moving-a-window-creates-a-new-workspace/</guid></item><item><title>Answer by dual for &lt;div class="snippet"&gt;&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I just installed i3 and ran into an issue with moving a window (leaf??) to another workspace located on another monitor. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;example&lt;/strong&gt;: workspace 1 (monitor 1) has a window (leaf) I want to move to workspace 2 (monitor 2). Focused on the window I want moved, mod+shift+2 creates workspace 2 on monitor 1 instead of sending it to the correct workspace on monitor 2. Now I have two instances of workspace 2 and my hot keys can only access the original workspace 2 (monitor 2) not the newly created one from the move.&lt;/p&gt;

&lt;p&gt;Is this a known issue or anything that can be done to correct this? &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;System info:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OS: Linux Mint 14 / 64bit / 3.5.0-40-generic&lt;/li&gt;
&lt;li&gt;i3: 4.6 (installed from the repose on the i3 site)&lt;/li&gt;
&lt;li&gt;Two monitors&lt;/li&gt;
&lt;li&gt;9500gt (driver: nvidia-experimental-310)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;code&gt;

&lt;p&gt;# This file has been auto-generated by i3-config-wizard(1).
    # It will not be overwritten, so edit it as you like.
    #
    # Should you change your keyboard layout somewhen, delete
    # this file and re-run i3-config-wizard(1).
    #&lt;/p&gt;

&lt;p&gt;# i3 config file (v4)
    #
    # &lt;/p&gt;

&lt;p&gt;set $mod Mod1&lt;/p&gt;

&lt;p&gt;# font for window titles. ISO 10646 = Unicode
    font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1&lt;/p&gt;

&lt;p&gt;# Use Mouse+$mod to drag floating windows to their wanted position
    floating_modifier $mod&lt;/p&gt;

&lt;p&gt;# start a terminal
    bindsym $mod+Return exec urxvt #i3-sensible-terminal&lt;/p&gt;

&lt;p&gt;# kill focused window
    bindsym $mod+Shift+Q kill&lt;/p&gt;

&lt;p&gt;# start dmenu (a program launcher)
    #bindsym ctrl+space exec dmenu&lt;em&gt;run
    bindsym ctrl+space exec dmenu&lt;/em&gt;run  -nb '#111111' -nf '#555555' -sb '#111111' -sf '#7d7875'&lt;/p&gt;

&lt;p&gt;#####################################
    # Make the currently focused window a scratchpad
    bindsym $mod+Shift+minus move scratchpad&lt;/p&gt;

&lt;p&gt;# Show the first scratchpad window
    bindsym $mod+minus scratchpad show&lt;/p&gt;

&lt;p&gt;# new window default border
    #new&lt;em&gt;window pixel 3
    #new&lt;/em&gt;float pixel&lt;/p&gt;

&lt;p&gt;#colors
    client.focused                  #9fbc00 #9fbc00  #111111&lt;/p&gt;

&lt;p&gt;#CHANGING BORDER STYLE
    bindsym $mod+t border normal
    bindsym $mod+y border pixel 4
    bindsym $mod+u border none&lt;/p&gt;

&lt;p&gt;#Auto Start
    exec --no-startup-id nitrogen --restore
    exec --no-startup-id xfce4-volumed
    exec --no-startup-id xfsettingsd
    exec --no-startup-id xscreensaver&lt;/p&gt;

&lt;p&gt;#Floating apps
    for_window [class="Guake"] floating enable&lt;/p&gt;

&lt;p&gt;# change focus
    bindsym $mod+h focus left
    bindsym $mod+j focus down
    bindsym $mod+k focus up
    bindsym $mod+l focus right&lt;/p&gt;

&lt;p&gt;# alternatively, you can use the cursor keys:
    bindsym $mod+Left focus left
    bindsym $mod+Down focus down
    bindsym $mod+Up focus up
    bindsym $mod+Right focus right&lt;/p&gt;

&lt;p&gt;# move focused window
    bindsym $mod+Shift+h move left
    bindsym $mod+Shift+j move down
    bindsym $mod+Shift+k move up
    bindsym $mod+Shift+l move right&lt;/p&gt;

&lt;p&gt;# alternatively, you can use the cursor keys:
    bindsym $mod+Shift+Left move left
    bindsym $mod+Shift+Down move down
    bindsym $mod+Shift+Up move up
    bindsym $mod+Shift+Right move right&lt;/p&gt;

&lt;p&gt;# split in horizontal orientation
    bindsym $mod+Shift+v split h&lt;/p&gt;

&lt;p&gt;# split in vertical orientation
    bindsym $mod+v split v&lt;/p&gt;

&lt;p&gt;# enter fullscreen mode for the focused container
    bindsym $mod+f fullscreen&lt;/p&gt;

&lt;p&gt;# change container layout (stacked, tabbed, default)
    bindsym $mod+s layout stacking
    bindsym $mod+w layout tabbed
    bindsym $mod+e layout default&lt;/p&gt;

&lt;p&gt;# toggle tiling / floating
    bindsym $mod+Shift+space floating toggle&lt;/p&gt;

&lt;p&gt;# change focus between tiling / floating windows
    bindsym $mod+space focus mode_toggle&lt;/p&gt;

&lt;p&gt;# focus ...&lt;/p&gt;&lt;/code&gt;&lt;span class="expander"&gt; &lt;a&gt;(more)&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; </title><link>https://faq.i3wm.org/question/3099/issue-moving-a-window-creates-a-new-workspace/?answer=3138#post-id-3138</link><description>Issue has been Solved.

On closer examination of my config file, there are spaces after the first few workspaces. This causes the move function to create a new workspace as they do not match. (e.g "1 " vs "1")

Dang white spaces... &gt;.&lt;</description><pubDate>Tue, 31 Dec 2013 02:42:48 +0000</pubDate><guid>https://faq.i3wm.org/question/3099/issue-moving-a-window-creates-a-new-workspace/?answer=3138#post-id-3138</guid></item></channel></rss>