nix/wm/waybar.nix

81 lines
1.7 KiB
Nix
Raw Normal View History

2024-07-29 10:08:16 +02:00
{
programs.waybar = {
enable = true;
style = ''
* {
border: none;
border-radius: 0;
padding: 0;
2024-07-29 12:58:23 +02:00
font-family: "VictorMono Nerd Font";
font-size: 10pt;
}
* {
transition: none;
}
#tags button.focused {
border-top: 2px solid @base05;
border-bottom: 2px solid @base05;
}
#tags button.occupied {
background-color: @base02;
}
#tags button.urgent {
background-color: @base08;
color: @base00;
}
'';
2024-07-29 10:08:16 +02:00
settings = {
mainBar = {
layer = "top";
position = "top";
height = 16;
output = [
"eDP-1"
2024-08-23 14:14:30 +02:00
"DP-1"
"HDMI-A-1"
2024-07-29 10:08:16 +02:00
];
modules-left = [
"river/tags"
"clock"
2024-07-29 10:08:16 +02:00
];
modules-center = [
"mpris"
2024-07-29 10:08:16 +02:00
];
modules-right = [
"pulseaudio"
"network"
"memory"
"cpu"
"temperature"
"battery"
"tray"
];
2024-07-29 11:16:34 +02:00
"river/tags" = {
num-tags = 10;
tag-labels = [ "1" "2" "3" "4" "5" "6" "7" "8" "9" "0" ];
set-tags = [ 1 2 4 8 16 32 64 128 256 512 ];
toogle-tags = [ 1 2 4 8 16 32 64 128 256 512 ];
};
"mpris" = {
interval = 1;
};
2024-08-09 10:15:32 +02:00
"pulseaudio" = {
format = "V{volume}%";
format-muted = "(mute)";
};
"network" = {
format = "disconected";
format-wifi = "{bandwidthTotalBytes}";
format-ethernet = "{bandwidthTotalBytes}";
format-disconected = "disconected";
interval = 1;
};
2024-07-29 10:08:16 +02:00
};
};
};
}