diff options
author | Joe <bousset.rudy@gmail.com> | 2022-05-12 10:00:54 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-05-12 10:00:54 +0200 |
commit | bb62c938579c4a38a6721c25c30b9838f88d0e01 (patch) | |
tree | fd936ea3a5f2db5904c977bb57748675cc596f65 /.local/bin/dmpc | |
parent | mpd rework on localhost (diff) | |
download | dotfiles-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/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; } |