nixos/home/hyprland/waybar/default.nix

48 lines
1.6 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }: {
2023-10-07 10:23:25 +01:00
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}" }
'';
2023-07-10 11:24:42 +01:00
programs.waybar = {
enable = true;
style = ./style.css;
2023-10-13 15:00:40 +01:00
systemd = {
enable = true;
target = "hyprland-session.target";
};
settings.main = {
layer = "top";
position = "top";
"modules-left" = [ "hyprland/workspaces" ];
"modules-center" = [ "mpris" ];
2023-10-17 06:35:08 +01:00
"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;
2023-10-17 06:35:08 +01:00
clock = import ./modules/clock.nix;
tray = import ./modules/tray.nix;
};
2023-07-10 11:24:42 +01:00
};
}