Fix and improve automatic i3 layout

inky
Elnu 1 year ago
parent bf0cd92f70
commit dd04c9bdb5

@ -1,10 +1,14 @@
{ ... }:
{ pkgs, ... }:
{
xsession.windowManager.i3.config = {
startup = [
{
command = ''i3-msg workspace 1 && (firefox &) && i3-msg "workspace 2; append_layout ${./tree.json}; open" && (for i in {1..4}; do i3-msg move left; done) && (discord &) && firefox --new-window https://youtube.com && i3-msg workspace 1'';
command = let layout = pkgs.substituteAll {
src = ./layout.sh;
tree = ./tree.json;
isExecutable = true;
}; in "${layout}";
always = true;
notification = false;
}

@ -0,0 +1,10 @@
i3-msg workspace 1
firefox &
i3-msg "workspace 2; append_layout @tree@; open"
for i in {1..4}; do
i3-msg move left
done
discord
firefox --new-window https://youtube.com
i3-msg workspace 1
Loading…
Cancel
Save