You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run sway -d 2> ~/sway.log from a TTY and upload it to a pastebin, such as gist.github.com.
... the log is empty
Configuration File:
I ran with -c /etc/sway/config
Description:
I have a script i3-set-layout that rearranges existing windows in a grid pattern. It works under i3wm but fails under sway.
eg with 4 windows, i3wm puts them in a grid with 2 columns but sway arranges them horizontally.
It appears that the splitv command is not working as under i3wm.
To illustrate what's going on, the script outputs the swaymsg calls and the resulting workspace representation:
$ i3-set-layout g 2
# it first moves all windows off to an empty workspace:
swaymsg [con_id=7] fullscreen disable, move to workspace 20
swaymsg [con_id=8] fullscreen disable, move to workspace 20
swaymsg [con_id=14] fullscreen disable, move to workspace 20
swaymsg [con_id=15] fullscreen disable, move to workspace 20
# now it arranges the splits and brings them back again to the current workspace:
swaymsg focus parent
swaymsg layout splith
swaymsg [con_id=15] move to workspace current, focus
H[foot]
swaymsg split h
H[foot]
swaymsg [con_id=7] move to workspace current, focus
H[foot foot]
swaymsg focus parent, split v
V[H[foot foot]]
swaymsg [con_id=8] move to workspace current, focus
V[H[foot foot foot]] ****** FAIL AT THIS POINT - i3 gives V[H[xterm xterm] xterm]
swaymsg split h
V[H[foot foot H[foot]]] ****** i3 gives V[H[xterm xterm]H[xterm]]
swaymsg [con_id=14] move to workspace current, focus
V[H[foot foot H[foot foot]]] ****** i3 gives V[H[xterm xterm]H[xterm xterm]] which is the correct 2x2 grid
Oddly, if one starts with a blank workspace and creates 4 new windows with appropriate splitting using the key bindings, it works!
Sway Version:
1.10
Debug Log:
sway -d 2> ~/sway.log
from a TTY and upload it to a pastebin, such as gist.github.com.... the log is empty
I ran with -c /etc/sway/config
I have a script i3-set-layout that rearranges existing windows in a grid pattern. It works under i3wm but fails under sway.
eg with 4 windows, i3wm puts them in a grid with 2 columns but sway arranges them horizontally.
It appears that the splitv command is not working as under i3wm.
To illustrate what's going on, the script outputs the swaymsg calls and the resulting workspace representation:
Oddly, if one starts with a blank workspace and creates 4 new windows with appropriate splitting using the key bindings, it works!
But I want to rearrange existing windows.
The text was updated successfully, but these errors were encountered: