Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

setting horizontal/vertical layout for i3layout not working #226

Open
andaag opened this issue Sep 30, 2020 · 6 comments
Open

setting horizontal/vertical layout for i3layout not working #226

andaag opened this issue Sep 30, 2020 · 6 comments

Comments

@andaag
Copy link

andaag commented Sep 30, 2020

I've started playing with i3 layout and I could not at all understand how it was meant to mimic i3. It essentially just stacked windows left to right, never splitting horizontally.

This was confusing enough I started looking at the code, and put a printf in https://github.com/kwin-scripts/kwin-tiling/blob/master/contents/code/i3layout.js#L118 . Turns out my setup always layouts with normal mode.

Then I put some more printf on these lines : https://github.com/kwin-scripts/kwin-tiling/blob/master/contents/code/tilingmanager.js#L568 and according to them the layout.layout.state is set, but then not picked up on when actually layouting the window.

I'm running kwin 5.18.5 on ubuntu 20.04.1. Any ideas on how to debug this or what might be going wrong here?

@faho
Copy link
Collaborator

faho commented Oct 3, 2020

All I can say is this works for me.

Are you using multiple monitors? That code only sets the state for the current monitor.

@andaag
Copy link
Author

andaag commented Oct 5, 2020

Nope, only the single monitor.

Any extra print's I can put in the code somewhere logical to debug this one? I'm mostly on https://github.com/lingtjien/Grid-Tiling-Kwin these days since I prefer the way it places windows, but I'm happy to help debug this regardless.

@v3ss0n
Copy link

v3ss0n commented Nov 8, 2020

It shows in OSD that I3layout had switched but i see no difference with blade layout.
I changed horziontal and vertical using shortcut but nothing changed, i opened 6 windows but it is all tiled vertically ,in a column
Here are the list of layouts that is working :

  • half layout with mutliple masters
  • rotation of layouts
  • spiral layout
  • Blade layout = i3layout

@kwin-scripts kwin-scripts deleted a comment from v3ss0n Nov 11, 2020
@cinelerra-gg
Copy link

I have exactly the same problem. The i3layout is only shown in vertical view, but not in horizontal view. I've tried everything, but I can't find a solution.

@sortedcord
Copy link

sortedcord commented Jan 9, 2021

Me too. Also, what does the normal mode in i3 mean? I set a keybind to it and opened 6 windows and nothing happened. It was tiling windows vertically and wasnt wrapping them horizontally. However, after fiddling around a lot, I figured out that it does tile horizontally.... kinda...

These are my keybinds-

Screenshot_20210109_115156

and after trying random combinations I landed up with this layout-
Screenshot_20210109_120141

Steps to recreate-

Open Browser >> Meta + H >> Open Terminal >> [With Focus on Browser] Meta+V >> Open Terminal

I don't know if this is how it was meant to be, but it definitely can be improved further on. It is very confusing

@ankitp4t3l
Copy link

Ditto

Also, what does the normal mode in i3 mean?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants