Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow number in workspace to output assign #3685

Open
joepvd opened this Issue Apr 15, 2019 · 3 comments

Comments

Projects
None yet
4 participants
@joepvd
Copy link

commented Apr 15, 2019

I'm submitting a…

[ ] Bug
[x] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

Trying to make use of workspace-to-output-assignments. When copying the number idiom bindsym $mod+1 number 1 to this assignment, nagbar tells the following:

ERROR: CONFIG: Expected one of these tokens: 'output'
ERROR: CONFIG: Line 150: workspace number 1 output LVDS1 VGA1
ERROR: CONFIG:                            ^^^^^^^^^^^^^^^^^^^

Desired Behavior

I can continue to use the workspace number X idiom when assigning workspaces to outputs.

Environment

Output of i3 --moreversion 2>&-:

Binary i3 version:  4.16.1 (2019-01-27) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.16.1 (2019-01-27) (pid 2394)abort…)
Loaded i3 config: /home/joep/.config/i3/config (Last modified: Mo 15 Apr 2019 23:34:26 CEST, 918 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3
- Ubuntu 16.04
- Are you using a compositor (e.g., xcompmgr or compton): compton

@i3bot i3bot added the enhancement label Apr 15, 2019

@orestisf1993

This comment has been minimized.

Copy link
Member

commented Apr 15, 2019

Documentation here can be improved but this already works, just remove the number token

@joepvd

This comment has been minimized.

Copy link
Author

commented Apr 16, 2019

Oh, I see. The reason I tried is probably actually a bug, and it relates to actions after a new output has been made available.

Take the following config:

workspace 1 output HDMI1 eDP1
workspace 2 output HDMI1 eDP1

And this state:

  • Output HDMI1 is disabled
  • Workspace 1 is called 1: named, on eDP1
  • Workspace 2 is called 2, on eDP1.

Now enable output HDMI1. Result:

  • Workspace 2 gets moved to output HDMI1
  • Workspace 1: named stays put.

I would expect the workspace 1: named also to get reassigned to te new output.

When I change the name of workspace 1 with e.g. i3-msg -t run_command 'rename workspace "1: named" to "1: named"', the workspace gets moved to the new output.

@anowlcalledjosh

This comment has been minimized.

Copy link

commented Apr 17, 2019

I also often notice some buggy behaviour when connecting new monitors.

If I have workspaces 1: named and 2: named on a single output eDP-1 (2: named has focus) with the following config:

workspace 1 output eDP-1
workspace 2 output HDMI-2

then connecting HDMI-2 will result in not only the 2: named workspace moving to HDMI-2, but also a new workspace called just 2 being created on HDMI-2, and that new workspace is given focus.

I then have to use the mouse to select the 2: named workspace again and make the 2 workspace go away, since workspace left and workspace right don't seem to work properly when there are duplicate numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.