tvl-depot/users/tazjin/dotfiles/default.nix
Vincent Ambo ed2bd88850 style(tazjin/dotfiles): more authentic win95 waybar styling
Brings this a LOT closer to the Windows95 style theming that I'm trying to
achieve with the whole thing.

Change-Id: Ifb457a682cb83a78e4a8e2ba2bb4a5b96f3eaf1f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12525
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: tazjin <tazjin@tvl.su>
2024-09-26 23:27:46 +00:00

22 lines
634 B
Nix

{ depot, pkgs, ... }@args:
rec {
dunstrc = ./dunstrc;
niri = ./niri.config.kdl;
waybar = {
config = import ./waybar/config.nix args;
style = pkgs.runCommandNoCC "waybar-style.css"
{
CHICAGO95 = depot.third_party.chicago95;
} ''
cat ${./waybar/style.css} | ${pkgs.envsubst}/bin/envsubst > $out
'';
};
# Helper derivation for iterating on waybar config.
waybarTest = pkgs.runCommandNoCC "waybar-conf" { } ''
mkdir -p $out
cat ${pkgs.writeText "waybar-conf.json" (builtins.toJSON(builtins.attrValues waybar.config))} > $out/config
cp ${waybar.style} $out/style.css
'';
}