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