waybar split in files

This commit is contained in:
2026-06-16 23:30:29 +02:00
parent 6ff3e03029
commit 146fad0ce6
15 changed files with 280 additions and 246 deletions

View File

@ -0,0 +1,12 @@
{lib, pkgs, ... }:
{
programs.waybar.settings.mainBar = {
"custom/music" = {
exec-if = "${lib.getExe pkgs.playerctl} metadata 2>&1 >/dev/null";
exec = "${lib.getExe pkgs.playerctl} metadata --format ' {{ artist }} - {{title}}'";
interval = 1;
interval-if = 5;
max-length = 50;
};
};
}