Files
home-manager/wm/waybar.nix
Armel van Ravels 9c98f7490f Battery status
2026-01-27 16:23:02 +01:00

63 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
programs.waybar = {
enable = true;
style = builtins.readFile ./waybar/waybar-style.css;
settings.mainBar = {
layer = "top";
position = "top";
height = 30;
modules-left = [
"hyprland/workspaces"
"mpris"
];
modules-center = [
"wlr/taskbar"
];
modules-right = [
"tray"
"cpu"
"battery"
"clock"
];
mpris = {
player = "spotify";
format = "{player_icon} {artist} - {title}";
format-paused = "{player_icon} {title}";
tooltip = true;
ignored-players = [ "firefox" "vlc" ];
};
tray = {
spacing = 10;
};
cpu = {
format = " {usage}%";
tooltip = false;
};
clock = {
tooltip = false;
};
"wlr/taskbar" = {
format = "{icon} {name}";
on-click = "activate";
};
battery = {
"format" = "{icon} {capacity}%";
"format-icons" = ["" "" "" "" ""];
};
};
};
}