i3-layout-manager icon indicating copy to clipboard operation
i3-layout-manager copied to clipboard

Is there a way to load a layout to specified workspace?

Open goteksc opened this issue 6 years ago • 2 comments

So, basically I'd like to load layouts to specific workspaces after i3 startup.

I tried getting this to work with the snippets from here, but to no avail.

goteksc avatar Feb 20 '19 07:02 goteksc

So, yeah I hacked it together. I'm up for more elegant solutions though.

#!/bin/bash
CURRENT=$1 # i3 workspace to apply layout to
LAYOUT=$2 # layout-to-load

i3-msg "workspace $CURRENT; exec layout-manager $LAYOUT"
sleep 0.66;
i3-msg "workspace back_and_forth"

goteksc avatar Feb 23 '19 17:02 goteksc

Hey, ye I would do the same. Would you care about a feature where the save layout will be tied to a specific workspace? I could integrate it.

klaxalk avatar Apr 23 '20 09:04 klaxalk