minimise nesting in /home
This commit is contained in:
parent
caa2a3d7c5
commit
383d9f878e
37 changed files with 40 additions and 45 deletions
39
home/desktop/sway/waybar.nix
Normal file
39
home/desktop/sway/waybar.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{pkgs, ...}: {
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
package = pkgs.waybar.overrideAttrs (final: prev: {
|
||||
patches = [./waybar-workspace.patch];
|
||||
});
|
||||
settings = [
|
||||
{
|
||||
height = 24;
|
||||
spacing = 4;
|
||||
position = "top";
|
||||
modules-left = [
|
||||
"sway/workspaces"
|
||||
];
|
||||
modules-center = [
|
||||
"sway/window"
|
||||
];
|
||||
modules-right = [
|
||||
"tray"
|
||||
"clock"
|
||||
];
|
||||
"sway/workspaces" = {
|
||||
format = "{icon}";
|
||||
};
|
||||
"sway/window" = {
|
||||
max-length = 80;
|
||||
};
|
||||
clock = {
|
||||
format = "{:%V|%d %a %H:%M}";
|
||||
tooltip-format = "<big>{:%a %Y-%m-%d %H:%M}</big>\n<small>{calendar}</small>";
|
||||
};
|
||||
}
|
||||
];
|
||||
systemd = {
|
||||
enable = true;
|
||||
target = "sway-session.target";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue