{ config, pkgs, lib, inputs, ... }:
{
programs.waybar = {
enable = true;
systemd.enable = false;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 30;
output = [
"eDP-2"
"DP-2"
"DP-3"
];
modules-left = [ "wlr/workspaces" "wlr/mode" "wlr/taskbar" ];
modules-center = [ "clock" "custom/swaync" ];
modules-right = [ "idle_inhibitor" "pulseaudio" "backlight" "battery" "tray" ];
"clock" = {
"format" = "{:%A %d %b %T}";
# "tooltip" = true;
# "tooltip-format" = "{=%A; %d %B %Y}\n{calendar}";
"interval" = 1;
};
"custom/swaync" = {
"tooltip" = false;
"format"= "{icon} {}";
"format-icons" = {
"notification" = "aa";
"none" = "a";
"dnd-notification" = "aa";
"dnd-none" = "a";
"inhibited-notification" = "aa";
"inhibited-none" = "a";
"dnd-inhibited-notification" = "aa";
"dnd-inhibited-none" = "a";
};
"return-type" = "json";
"exec-if" = "which swaync-client";
"exec" = "swaync-client -swb";
"on-click" = "swaync-client -t -sw";
"on-click-right" = "swaync-client -d -sw";
"escape" = true;
};
};
};
style = ''
#custom-swaync {
padding: 2%;
}
'';
};
}