i3: also use a saved layout for firefox

This commit is contained in:
Vincent Bernat 2021-07-06 06:55:52 +02:00
parent 43697a0617
commit 3d10d1aa63
2 changed files with 8 additions and 1 deletions

2
config
View file

@ -164,6 +164,6 @@ for_window [class="Spotify"] move to workspace number 3
exec_always --no-startup-id systemctl --user start --no-block i3-session.target
exec --no-startup-id i3-msg "\
workspace number 1; append_layout ~/.config/i3/ws-emacs.json; exec emacs; exec $term; exec $term; \
workspace number 2; layout tabbed; exec firefox; \
workspace number 2; append_layout ~/.config/i3/ws-firefox.json; exec firefox; \
workspace number 3; exec spotify; \
workspace number 1"

7
ws-firefox.json Normal file
View file

@ -0,0 +1,7 @@
{
"layout": "tabbed",
"percent": 1,
"nodes": [
{"swallows": [{"class": "^Firefox$"}]},
]
}