feat(eww): on both computers

This commit is contained in:
Ahurac 2024-11-19 13:55:47 +01:00
parent eec794002e
commit f035aa1fe3
7 changed files with 62 additions and 16 deletions

View file

@ -37,20 +37,18 @@
"Mod+Shift+quotedbl".action = move-column-to-workspace 3;
"Mod+Shift+apostrophe".action = move-column-to-workspace 4;
};
spawn-at-startup = [{
command = [
"swaybg"
"-i"
"/home/ahurac/.local/share/backgrounds/default.png"
"-m"
"fill"
];
}];
};
programs.eww = {
enable = true;
configDir = ./eww;
spawn-at-startup = [
{
command = [
"swaybg"
"-i"
"/home/ahurac/.local/share/backgrounds/default.png"
"-m"
"fill"
];
}
{ command = [ "eww" "open" "dock_ahrc-laptop" ]; }
];
};
home.file.".local/share/backgrounds/default.png" = {

View file

@ -29,5 +29,6 @@
"Mod+Shift+3".action = move-column-to-workspace 3;
"Mod+Shift+4".action = move-column-to-workspace 4;
};
spawn-at-startup = [{ command = [ "eww" "open" "dock_ahrc-pc" ]; }];
};
}

View file

@ -135,7 +135,7 @@
)
)
(defwindow dock
(defwindow dock_ahrc-laptop
:monitor 0
:geometry (geometry
:x "0"
@ -177,3 +177,46 @@
)
)
)
(defwindow dock_ahrc-pc
:monitor 0
:geometry (geometry
:x "0"
:y "0"
:width "100%"
:height "30px"
:anchor "bottom center"
)
:stacking "fg"
:exclusive true
(centerbox
:class "main"
(box
:class "left"
:halign "start"
:space-evenly false
(workspaces)
(window-title)
)
(box
:class "middle"
:space-evenly false
(tray)
(time)
(notifications)
)
(box
:class "right"
:halign "end"
:space-evenly false
""
)
)
)

View file

@ -428,7 +428,6 @@
};
spawn-at-startup = [
{ command = [ "eww" "daemon" ]; }
{ command = [ "eww" "open" "dock" ]; }
];
};
};
@ -436,4 +435,9 @@
programs.mpv.enable = true;
programs.jq.enable = true;
programs.fastfetch.enable = true;
programs.eww = {
enable = true;
configDir = ./eww;
};
}