120 lines
2.6 KiB
Nix
120 lines
2.6 KiB
Nix
{
|
||
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;
|
||
}
|
||
'';
|
||
};
|
||
}
|