nixos/home/hyprland/waybar/default.nix
Evie Litherland-Smith 3ab21edc2c Restore old waybar style using stylix to set color
Stylix sets color and font for waybar, custom config imports and uses
those
Update style with more consistent size, new look to the top and
transparency (with blur of course)

Slightly reduce gaps across whole UI to make better use of space without
compromising looks

Add TODO to restyle swaync using new method at some point...
2023-10-17 08:15:52 +01:00

48 lines
1.6 KiB
Nix

{ config, lib, pkgs, ... }: {
home.packages = with pkgs; [ networkmanagerapplet bluez ];
stylix.targets.waybar.enable = false;
xdg.configFile."waybar/scheme.css".text =
with config.lib.stylix.colors.withHashtag; ''
@define-color base00 ${base00};
@define-color base01 ${base01};
@define-color base02 ${base02};
@define-color base03 ${base03};
@define-color base04 ${base04};
@define-color base05 ${base05};
@define-color base06 ${base06};
@define-color base07 ${base07};
@define-color base08 ${base08};
@define-color base09 ${base09};
@define-color base0A ${base0A};
@define-color base0B ${base0B};
@define-color base0C ${base0C};
@define-color base0D ${base0D};
@define-color base0E ${base0E};
@define-color base0F ${base0F};
* { font-family: "${config.stylix.fonts.sansSerif.name}" }
'';
programs.waybar = {
enable = true;
style = ./style.css;
systemd = {
enable = true;
target = "hyprland-session.target";
};
settings.main = {
layer = "top";
position = "top";
"modules-left" = [ "hyprland/workspaces" ];
"modules-center" = [ "mpris" ];
"modules-right" = [ "pulseaudio" "backlight" "battery" "clock" "tray" ];
"hyprland/workspaces" = import ./modules/hyprland_workspaces.nix;
mpris = import ./modules/mpris.nix;
pulseaudio = import ./modules/pulseaudio.nix;
backlight = import ./modules/backlight.nix;
battery = import ./modules/battery.compact.nix;
clock = import ./modules/clock.nix;
tray = import ./modules/tray.nix;
};
};
}