summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-05-12 10:00:54 +0200
committerJoe <bousset.rudy@gmail.com>2022-05-12 10:00:54 +0200
commitbb62c938579c4a38a6721c25c30b9838f88d0e01 (patch)
treefd936ea3a5f2db5904c977bb57748675cc596f65
parentmpd rework on localhost (diff)
downloaddotfiles-bsd-bb62c938579c4a38a6721c25c30b9838f88d0e01.tar.gz
dotfiles-bsd-bb62c938579c4a38a6721c25c30b9838f88d0e01.tar.bz2
dotfiles-bsd-bb62c938579c4a38a6721c25c30b9838f88d0e01.tar.xz
dotfiles-bsd-bb62c938579c4a38a6721c25c30b9838f88d0e01.tar.zst
dotfiles-bsd-bb62c938579c4a38a6721c25c30b9838f88d0e01.zip
Fix
Diffstat (limited to '')
-rw-r--r--.config/mpd/mpd.conf4
-rwxr-xr-x.local/bin/dmpc4
2 files changed, 4 insertions, 4 deletions
diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf
index 95b844d..ae3b958 100644
--- a/.config/mpd/mpd.conf
+++ b/.config/mpd/mpd.conf
@@ -80,8 +80,8 @@ group "jozan"
# systemd socket activiation is in use.
#
# For network
-# bind_to_address "any"
-bind_to_address "localhost"
+bind_to_address "any"
+# bind_to_address "localhost"
# bind_to_address "192.168.1.79"
#
# And for Unix Socket
diff --git a/.local/bin/dmpc b/.local/bin/dmpc
index b22e678..782d76e 100755
--- a/.local/bin/dmpc
+++ b/.local/bin/dmpc
@@ -10,7 +10,7 @@ sub main
my $prompt;
my $queued;
- $current = `mpc current`;
+ $current = `mpc -h localhost current`;
if (not $current) {
$current = 'Current: Stopped';
}
@@ -28,7 +28,7 @@ sub main
chomp $queued;
$prompt = "toggle\nnext\nprev\nplay\nstop\nclear\nrepeat\nrandom\n\n$current\n$queued\n";
$action = `printf "$prompt" | dmenu -i -l 11 -m 0`;
- system("mpc " . $action);
+ system("mpc -h localhost " . $action);
return;
}