kwin-scripts / kwin-tiling

Tiling script for kwin
GNU General Public License v2.0
1.1k stars 68 forks source link

Persist layout settings #237

Closed jnbooth closed 3 years ago

jnbooth commented 3 years ago

I mostly use HalfLayout, but flipped horizontally by pressing the "cycle rotations" hotkey twice. Unfortunately, if I restart the session or swap to a different layout, the rotation is reset. This means that every time I restart my computer, I have to press "cycle rotations" twice on every desktop. Would it be possible to save those sorts of settings upon change, or at least specify them in some sort of config file?

faho commented 3 years ago

Well, there's a settings menu Screenshot_20210208_174933

That bit where it says "layouts for each desktop" is where you configure the layouts for each desktop. Unfortunately kwin doesn't give us much to work with here, so you'll have to do it as a "desktop:layout" string with a comma between each.

If the settings menu doesn't appear that's down to breakage in kpackagetool (or whatever it's called this week), use something like

mkdir -p ~/.local/share/kservices5
ln -s ~/.local/share/kwin/scripts/kwin-script-tiling/metadata.desktop ~/.local/share/kservices5/kwin-script-tiling.desktop

to enable it.

jnbooth commented 3 years ago

I don't understand how I would use that to tell each desktop to start with HalfLayout rotated twice.

faho commented 3 years ago

Ah, okay. Terribly sorry, I misread. That's currently not supported.

And honestly, unless someone sends in a patch it's not going to be supported either - I don't use rotation so I don't have any interest in fiddling with this.