summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmpc
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 /.local/bin/dmpc
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 '.local/bin/dmpc')
-rwxr-xr-x.local/bin/dmpc4
1 files changed, 2 insertions, 2 deletions
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;
}