Fix and improve automatic i3 layout
This commit is contained in:
parent
bf0cd92f70
commit
dd04c9bdb5
2 changed files with 16 additions and 2 deletions
|
@ -1,10 +1,14 @@
|
||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
xsession.windowManager.i3.config = {
|
xsession.windowManager.i3.config = {
|
||||||
startup = [
|
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;
|
always = true;
|
||||||
notification = false;
|
notification = false;
|
||||||
}
|
}
|
||||||
|
|
10
hosts/desktop/i3/layout.sh
Normal file
10
hosts/desktop/i3/layout.sh
Normal file
|
@ -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…
Add table
Reference in a new issue