dotfiles/modules/waybar.nix

121 lines
2.6 KiB
Nix
Raw Normal View History

2025-09-09 18:03:42 +02:00
{
2025-09-09 18:38:16 +02:00
programs.waybar = {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 28;
output = [ "eDP-1" ];
margin = "10 20";
2025-09-09 18:42:43 +02:00
2025-09-09 18:38:16 +02:00
modules-left = [
"niri/workspaces"
"custom/catgirl-status"
];
modules-center = [ "sway/window" ];
modules-right = [
"battery"
"network"
"clock"
];
2025-09-09 18:42:43 +02:00
# Catgirl status placeholder
2025-09-09 18:38:16 +02:00
"custom/catgirl-status" = {
interval = 10;
exec = ''
echo ""
'';
format = "{}";
max-length = 40;
tooltip = false;
};
2025-09-09 18:42:43 +02:00
# Workspaces with numbers instead of icons
2025-09-09 18:38:16 +02:00
"niri/workspaces" = {
all-outputs = true;
2025-09-09 18:42:43 +02:00
disable-click = false;
format = "{name}";
2025-09-09 18:38:16 +02:00
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;
}
2025-09-09 18:42:43 +02:00
2025-09-09 18:38:16 +02:00
window#waybar {
background-color: #3A3A58;
color: #FF69B4;
border: 2px solid #FF69B4;
box-shadow: 0 0 15px #FF69B4AA;
}
2025-09-09 18:42:43 +02:00
2025-09-09 18:38:16 +02:00
#workspaces button {
background-color: #FF69B4;
color: #3A3A58;
margin: 0 3px;
border-radius: 8px;
padding: 3px 10px;
transition: background-color 0.2s ease;
2025-09-09 18:42:43 +02:00
font-family: "Fira Mono", monospace;
2025-09-09 18:38:16 +02:00
}
2025-09-09 18:42:43 +02:00
2025-09-09 18:38:16 +02:00
#workspaces button:hover {
background-color: #FFB6C1;
color: #1A1A2E;
}
2025-09-09 18:42:43 +02:00
2025-09-09 18:38:16 +02:00
#workspaces button.active {
background-color: #FF69B4;
color: #FFF0F5;
font-weight: bold;
}
2025-09-09 18:42:43 +02:00
2025-09-09 18:38:16 +02:00
#clock {
font-style: italic;
color: #FFC0CB;
}
2025-09-09 18:42:43 +02:00
2025-09-09 18:38:16 +02:00
#battery, #network {
color: #FFB6C1;
}
2025-09-09 18:42:43 +02:00
2025-09-09 18:38:16 +02:00
#custom-catgirl-status {
font-size: 1.1em;
color: #FF69B4;
font-weight: bold;
font-family: "Comic Mono", monospace;
}
'';
};
2025-09-09 18:03:42 +02:00
}