waybar split in files
This commit is contained in:
12
homeConfigs/global/wayland/waybar/music.nix
Normal file
12
homeConfigs/global/wayland/waybar/music.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user