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

workspace $ws output $out doesn't work #1122

Closed
djmitche opened this issue Mar 18, 2017 · 12 comments
Closed

workspace $ws output $out doesn't work #1122

djmitche opened this issue Mar 18, 2017 · 12 comments

Comments

@djmitche
Copy link

 $ swaymsg -t get_outputs
[
   {
     "id": 1,
     "name": "eDP-1",
     "rect": {
       "x": 0,
       "y": 0,
       "width": 2560,
       "height": 1440
     },
     "visible": true,
     "focused": false,
     "active": true,
     "primary": false,
     "layout": "output",
     "type": "output",
     "current_workspace": "F1",
     "scale": 1
   },
   {
     "id": 3,
     "name": "HDMI-A-2",
     "rect": {
       "x": 2560,
       "y": 0,
       "width": 1360,
       "height": 768
     },
     "visible": true,
     "focused": false,
     "active": true,
     "primary": false,
     "layout": "output",
     "type": "output",
     "current_workspace": "F2",
     "scale": 1
   }]
 $ swaymsg -t get_workspaces
[
   {
     "id": 9,
     "name": "F1",
     "rect": {
       "x": 0,
       "y": 0,
       "width": 2560,
       "height": 1424
     },
     "visible": true,
     "num": -1,
     "output": "eDP-1",
     "urgent": false,
     "type": "workspace",
     "layout": "splith",
     "focused": false
   },
   {
     "id": 26,
     "name": "F8",
     "rect": {
       "x": 0,
       "y": 0,
       "width": 1360,
       "height": 752
     },
     "visible": false,
     "num": -1,
     "output": "HDMI-A-2",
     "urgent": false,
     "type": "workspace",
     "layout": "splith",
     "focused": false
   },
   {
     "id": 49,
     "name": "F2",
     "rect": {
       "x": 0,
       "y": 0,
       "width": 1360,
       "height": 752
     },
     "visible": true,
     "num": -1,
     "output": "HDMI-A-2",
     "urgent": false,
     "type": "workspace",
     "layout": "splith",
     "focused": true
   }
 ]
$ swaymsg workspace F2 output eDP-1
[
   {
     "success": true
   }
 ]

Expected behavior: F2 appears on eDP-1

Actual behavior: no change

 $ swaymsg -t get_workspaces
[
   ...
   {
     "id": 49,
     "name": "F2",
     "rect": {
       "x": 0,
       "y": 0,
       "width": 1360,
       "height": 752
     },
     "visible": true,
     "num": -1,
     "output": "HDMI-A-2",
     "urgent": false,
     "type": "workspace",
     "layout": "splith",
     "focused": true
   }
 ]
@djmitche
Copy link
Author

Ah, and the source shows why:

	// TODO: Move workspace to output. (don't do so when reloading)

@deathlyfrantic
Copy link

Are you trying to move a workspace that already exists to a given output?

@deathlyfrantic
Copy link

If you are, the command is move workspace to output <name> - workspace <name> output <output-name> only assigns a workspace to a given output, it does not actually move it.

@djmitche
Copy link
Author

djmitche commented Mar 26, 2017

No, the first mention of the workspace in the config is

    workspace F7 output $screen3

(where $screen3 is HDMI-A-2)

@ddevault
Copy link
Contributor

where $screen2 is HDMI-A-2

But the config line you pasted uses $screen3

@djmitche
Copy link
Author

fixed :)

@djmitche
Copy link
Author

I didn't mean the issue is fixed, I meant hte comment was fixed. The issue is still very much not fixed.

@ddevault ddevault reopened this Mar 27, 2017
@ddevault
Copy link
Contributor

Wait so are you or are you not trying to move the workspace at runtime

@djmitche
Copy link
Author

I'm not :)

I want F7 to always appear on HDMI-A_2. The line above is in my config.

@ddevault
Copy link
Contributor

Can you provide a debug log?

@deathlyfrantic
Copy link

What version of Sway are you running? This actually was broken in 0.12, but it was fixed in 0.12.1 - see #1105.

@djmitche
Copy link
Author

djmitche commented Mar 27, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants