From bb62c938579c4a38a6721c25c30b9838f88d0e01 Mon Sep 17 00:00:00 2001
From: Joe <bousset.rudy@gmail.com>
Date: Thu, 12 May 2022 10:00:54 +0200
Subject: Fix

---
 .local/bin/dmpc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to '.local/bin')

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;
 }
 
-- 
cgit v1.2.3