summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmpc
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-12-27 14:41:35 +0100
committerJoe <rbo@gmx.us>2024-12-27 14:41:35 +0100
commitb29ed0b265683702646eb209eafcc9a92b317b3b (patch)
tree6c2fe54fab038febcd506e93e3c8e6d085124910 /.local/bin/dmpc
parentgood (diff)
downloaddotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.gz
dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.bz2
dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.xz
dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.zst
dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.zip
up
Diffstat (limited to '.local/bin/dmpc')
-rwxr-xr-x.local/bin/dmpc7
1 files changed, 6 insertions, 1 deletions
diff --git a/.local/bin/dmpc b/.local/bin/dmpc
index f332431..cb741be 100755
--- a/.local/bin/dmpc
+++ b/.local/bin/dmpc
@@ -9,7 +9,12 @@ sub main
my $current;
my $prompt;
my $queued;
+ my $color;
+ $color = '#cc241d';
+ if (@ARGV == 1) {
+ $color = $ARGV[0];
+ }
$current = `mpc current`;
if (not $current) {
$current = 'Current: Stopped';
@@ -27,7 +32,7 @@ sub main
chomp $current;
chomp $queued;
$prompt = "toggle\nnext\nprev\nplay\nstop\nclear\nrepeat\nrandom\n\n$current\n$queued\n";
- $action = `printf "$prompt" | dmenu -i -l 11`;
+ $action = `printf "$prompt" | dmenu -i -l 11 -sb '$color' -shb '$color'`;
system("mpc " . $action);
return;
}