83 lines
2.3 KiB
Nix
83 lines
2.3 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
programs.waybar = {
|
|
enable = true;
|
|
style = ''
|
|
* {
|
|
background-color: #${config.colorScheme.palette.base00};
|
|
color: #${config.colorScheme.palette.base05};
|
|
border: none;
|
|
border-radius: 0;
|
|
min-height: 0;
|
|
font-family: '${config.nomarchy.fonts.monospace}';
|
|
font-size: 12px;
|
|
}
|
|
|
|
.modules-left { margin-left: 8px; }
|
|
.modules-right { margin-right: 8px; }
|
|
|
|
#workspaces button {
|
|
all: initial;
|
|
padding: 0 6px;
|
|
margin: 0 1.5px;
|
|
min-width: 9px;
|
|
color: #${config.colorScheme.palette.base04};
|
|
}
|
|
|
|
#workspaces button.focused, #workspaces button.active {
|
|
color: #${config.colorScheme.palette.base0B};
|
|
}
|
|
|
|
#workspaces button.empty { opacity: 0.5; }
|
|
|
|
#cpu, #battery, #pulseaudio, #custom-nomarchy, #custom-update {
|
|
min-width: 12px;
|
|
margin: 0 7.5px;
|
|
}
|
|
|
|
#tray { margin-right: 16px; }
|
|
#bluetooth { margin-right: 17px; }
|
|
'';
|
|
settings = [{
|
|
layer = "top";
|
|
position = "top";
|
|
height = 26;
|
|
spacing = 0;
|
|
modules-left = [ "custom/nomarchy" "hyprland/workspaces" ];
|
|
modules-center = [ "clock" "custom/update" "custom/voxtype" "custom/screenrecording-indicator" "custom/idle-indicator" "custom/notification-silencing-indicator" ];
|
|
modules-right = [ "group/tray-expander" "bluetooth" "network" "pulseaudio" "cpu" "battery" ];
|
|
"custom/nomarchy" = {
|
|
format = "<span font='nomarchy'>\ue900</span>";
|
|
on-click = "nomarchy-menu";
|
|
on-click-right = "xdg-terminal-exec";
|
|
tooltip-format = "Nomarchy Menu\n\nSuper + Alt + Space";
|
|
};
|
|
"hyprland/workspaces" = {
|
|
on-click = "activate";
|
|
format = "{icon}";
|
|
format-icons = {
|
|
default = "";
|
|
active = "";
|
|
};
|
|
};
|
|
"clock" = {
|
|
format = "{:%H:%M}";
|
|
};
|
|
"battery" = {
|
|
format = "{icon} {capacity}%";
|
|
format-icons = ["" "" "" "" ""];
|
|
};
|
|
"pulseaudio" = {
|
|
format = "{icon} {volume}%";
|
|
format-icons = ["" "" ""];
|
|
};
|
|
"network" = {
|
|
format-wifi = " {essid}";
|
|
format-ethernet = " {ipaddr}";
|
|
format-disconnected = "⚠ Disconnected";
|
|
};
|
|
}];
|
|
};
|
|
}
|