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] {