Didn't work without config file
This commit is contained in:
parent
efc0580044
commit
d665cd174f
|
@ -3,7 +3,7 @@
|
||||||
let configPath = $"($env.XDG_CONFIG_HOME? | default $"($env.HOME)/.config")/irs.toml"
|
let configPath = $"($env.XDG_CONFIG_HOME? | default $"($env.HOME)/.config")/irs.toml"
|
||||||
let config = if ($configPath | path exists) { open $configPath }
|
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
|
let current = mpc --host $mpdHost current
|
||||||
|
|
||||||
def notify [message: string, display_icon:bool] {
|
def notify [message: string, display_icon:bool] {
|
||||||
|
|
Loading…
Reference in a new issue