From 5b3bf5a4fcaf460800a41b90609b5363b254a7a3 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 12 May 2022 12:05:45 +0200 Subject: Updates, new script! --- .local/bin/dmpc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin/dmpc') diff --git a/.local/bin/dmpc b/.local/bin/dmpc index 782d76e..b22e678 100755 --- a/.local/bin/dmpc +++ b/.local/bin/dmpc @@ -10,7 +10,7 @@ sub main my $prompt; my $queued; - $current = `mpc -h localhost current`; + $current = `mpc 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 -h localhost " . $action); + system("mpc " . $action); return; } -- cgit v1.2.3