From d665cd174f7783647c78d8245e552c40424e7ec2 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Mon, 23 Sep 2024 10:10:54 +0200 Subject: [PATCH] Didn't work without config file --- src/bin/noise | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/noise b/src/bin/noise index f740708..c7ec0c1 100755 --- a/src/bin/noise +++ b/src/bin/noise @@ -3,7 +3,7 @@ let configPath = $"($env.XDG_CONFIG_HOME? | default $"($env.HOME)/.config")/irs.toml" let config = if ($configPath | path exists) { open $configPath } -let mpdHost = $config.noise.host? | default 'localhost:6600' +let mpdHost = if ($config == nothing) { $config.noise.host? | default 'localhost' } else { 'localhost' } let current = mpc --host $mpdHost current def notify [message: string, display_icon:bool] {