diff --git a/nixos/home/base.nix b/nixos/home/base.nix index 5ae3500..a9f2cfd 100644 --- a/nixos/home/base.nix +++ b/nixos/home/base.nix @@ -71,6 +71,7 @@ type "pipewire" name "main" } + log_file "/tmp/mpd.log" ''; }; mpdris2 = { diff --git a/nixos/home/yambar.nix b/nixos/home/yambar.nix index 5312f1f..5c7f49b 100644 --- a/nixos/home/yambar.nix +++ b/nixos/home/yambar.nix @@ -13,8 +13,27 @@ left = [ { # https://codeberg.org/dnkl/yambar/issues/53#issuecomment-264088 - label = { - content.string.text = "god's in his heaven | all's right with the world"; + script = { + #? or /run/current-system/sw/bin/playerctl + path = "${pkgs.playerctl}/bin/playerctl"; + args = [ + "--follow" + "metadata" + "--format" + '' + status|string|{{status}} + artist|string|{{artist}} + title|string|{{title}} + '' + ]; + content.map.conditions = { + "status == Playing" = { + string.text = "{artist} - {title}"; + }; + "status != Playing" = { + string.text = "god's in his heaven | all's right with the world"; + }; + }; }; } ]; diff --git a/nixos/hosts/base.nix b/nixos/hosts/base.nix index d25cfe8..3763d4e 100644 --- a/nixos/hosts/base.nix +++ b/nixos/hosts/base.nix @@ -57,7 +57,6 @@ alsa.enable = true; pulse.enable = true; }; - mpd.enable = true; # Configured with home-manager # CUPS printing printing.enable = true; # misc