dotfiles/modules/waybar.nix
Lucy von Overheidt ce96d623a0 meow
2025-09-09 18:42:43 +02:00

120 lines
2.6 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
programs.waybar = {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 28;
output = [ "eDP-1" ];
margin = "10 20";
modules-left = [
"niri/workspaces"
"custom/catgirl-status"
];
modules-center = [ "sway/window" ];
modules-right = [
"battery"
"network"
"clock"
];
# Catgirl status placeholder
"custom/catgirl-status" = {
interval = 10;
exec = ''
echo ""
'';
format = "{}";
max-length = 40;
tooltip = false;
};
# Workspaces with numbers instead of icons
"niri/workspaces" = {
all-outputs = true;
disable-click = false;
format = "{name}";
disable-markup = false;
max-length = 6;
};
battery = {
format = "🔋 {capacity}%";
low = 20;
critical = 10;
format-low = " {capacity}%";
format-critical = "🚨 {capacity}%";
tooltip = true;
};
network = {
interface = "wlan0";
format-connected = "📶 {essid}";
format-disconnected = "📡 disconnected";
tooltip = true;
};
clock = {
format = "{:%a %b %d, %H:%M}";
tooltip = false;
};
};
};
style = ''
* {
font-family: "Comic Mono", "Fira Mono", monospace;
border-radius: 12px;
font-weight: 600;
padding: 5px 15px;
}
window#waybar {
background-color: #3A3A58;
color: #FF69B4;
border: 2px solid #FF69B4;
box-shadow: 0 0 15px #FF69B4AA;
}
#workspaces button {
background-color: #FF69B4;
color: #3A3A58;
margin: 0 3px;
border-radius: 8px;
padding: 3px 10px;
transition: background-color 0.2s ease;
font-family: "Fira Mono", monospace;
}
#workspaces button:hover {
background-color: #FFB6C1;
color: #1A1A2E;
}
#workspaces button.active {
background-color: #FF69B4;
color: #FFF0F5;
font-weight: bold;
}
#clock {
font-style: italic;
color: #FFC0CB;
}
#battery, #network {
color: #FFB6C1;
}
#custom-catgirl-status {
font-size: 1.1em;
color: #FF69B4;
font-weight: bold;
font-family: "Comic Mono", monospace;
}
'';
};
}