154 lines
5.2 KiB
Nix
Executable File
154 lines
5.2 KiB
Nix
Executable File
{ config, lib, ... }:
|
|
{
|
|
programs.waybar = {
|
|
enable = true;
|
|
systemd.enable = true;
|
|
style = ''
|
|
|
|
* {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
window#waybar {
|
|
background-color: transparent;
|
|
border-radius: ${builtins.toString config.wayland.windowManager.hyprland.settings.decoration.rounding};
|
|
}
|
|
|
|
#workspaces button {
|
|
all: unset;
|
|
padding: 1px 6px;
|
|
margin: 2px;
|
|
color: alpha(@base05, 0.5);
|
|
border-radius: 1em;
|
|
}
|
|
|
|
|
|
#workspaces button.active {
|
|
color: @base05;
|
|
}
|
|
|
|
#workspaces {
|
|
margin: 0px;
|
|
padding: 2px;
|
|
background-color: @base00;
|
|
border-radius: 1em;
|
|
}
|
|
#mpris,
|
|
#backlight,
|
|
#tray,
|
|
#pulseaudio,
|
|
#window,
|
|
#upower,
|
|
#clock,
|
|
#power-profiles-daemon {
|
|
padding: 2px 10px;
|
|
background-color: @base00;
|
|
color: @base05;
|
|
border-radius: ${builtins.toString config.wayland.windowManager.hyprland.settings.decoration.rounding};
|
|
}
|
|
|
|
#tray {
|
|
padding: 0px 8px;
|
|
}
|
|
|
|
window#waybar.empty #window {
|
|
background: none;
|
|
}
|
|
#custom-sep {
|
|
color: alpha(@base05, 0.5);
|
|
}
|
|
'';
|
|
settings = {
|
|
mainBar = {
|
|
margin-top = config.wayland.windowManager.hyprland.settings.general.gaps_out;
|
|
margin-left = config.wayland.windowManager.hyprland.settings.general.gaps_out;
|
|
margin-right = config.wayland.windowManager.hyprland.settings.general.gaps_out;
|
|
layer = "top";
|
|
position = "top";
|
|
spacing = 4;
|
|
modules-left = [
|
|
"hyprland/workspaces"
|
|
"hyprland/window"
|
|
"mpris"
|
|
];
|
|
modules-right = [
|
|
"backlight"
|
|
"pulseaudio"
|
|
"upower"
|
|
"power-profiles-daemon"
|
|
"clock"
|
|
"tray"
|
|
];
|
|
"custom/sep" = {
|
|
format = " | ";
|
|
};
|
|
"mpris" = {
|
|
player = "spotify";
|
|
format = "{title} - {artist}";
|
|
};
|
|
|
|
"hyprland/window" = {
|
|
format = "{}";
|
|
max-length = 40;
|
|
};
|
|
|
|
"tray" = {
|
|
icon-size = 14;
|
|
};
|
|
|
|
"hyprland/workspaces" = {
|
|
format = "{name}";
|
|
};
|
|
|
|
"upower" = {
|
|
format = "{percentage}";
|
|
format-alt = "{time}";
|
|
icon-size = 12;
|
|
hide-if-empty = true;
|
|
tooltip = false;
|
|
tooltip-spacing = 20;
|
|
};
|
|
|
|
"power-profiles-daemon" = {
|
|
format = "{profile}";
|
|
format-tooltip = "Power profile: {profile}\nDriver: {driver}";
|
|
};
|
|
|
|
"backlight" = {
|
|
format = "{icon} {percent}%";
|
|
format-icons = [
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
];
|
|
};
|
|
|
|
"pulseaudio" = {
|
|
format = "{icon} {volume}%";
|
|
format-muted = " {volume}%";
|
|
on-click = "pavucontrol";
|
|
format-icons = [
|
|
""
|
|
""
|
|
""
|
|
];
|
|
};
|
|
|
|
"clock" = {
|
|
interval = 1;
|
|
format = "{:%H:%M | %d.%m.%Y}";
|
|
format-alt = "{:%H:%M | %d.%m.%Y}";
|
|
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|