diff options
Diffstat (limited to '.local/bin/dmpc')
-rwxr-xr-x | .local/bin/dmpc | 4 |
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; } |