cboddy / i3-workspace-names-daemon

A daemon script to dynamically update workspace names in i3wm based on their content.
MIT License
118 stars 34 forks source link

Doc need: windows opened in multiple workspaces cause by false config #33

Open iiey opened 4 years ago

iiey commented 4 years ago

Step to reproduce:

  1. Assign tabbed layout for certain programs then opening one in a workspace. Let say Firefox in Workspace 2
    
    assign [class=Firefox*|Thunderbird] 2
    for_window [class=Firefox*|Thunberbird] layout tabbed

minimal config as in readme

bindsym $mod+1 workspace number 1 bindsym $mod+2 workspace number 2 bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+2 move container to workspace number 2


2. Open new window for ex. Firefox History oder Firefox Bookmark or Thunderbird in Workspace 2
Each time it will spawn new workspace for each window. That is bad, that I must use mouse to switch between them.
![screenshot_20200615_084343](https://user-images.githubusercontent.com/18628392/84626383-48c78300-aee5-11ea-94ca-1ef549d157eb.jpg)

Expected behaviour is all windows should spawn in the same workspace.

I'm using ubuntu 16.04 KDE , i3 version 4.17.1 (also same problem in i3 version 4.11) with dual monitor.
CastixGitHub commented 4 years ago

It's actually an issue with your i3 config file and it is related to assign, not to the tabbed layout: You need to replace: assign [class=Firefox*|Thunderbird] 2 with: assign [class=Firefox*|Thunderbird] number 2

from i3 user guide 4.17:

# Assign to the workspace with number 2, regardless of name
assign [class="^URxvt$"] → number 2

I think this issue should stay open until the readme is more clear about that

iiey commented 4 years ago

Wow, thank you so much! What an idiot I am, writing down without noticing it. Then we let the maintainer close this issue when README, Wiki or FAQ are more clear about it. Until then I would change the subject so other with same problem can find easier.