Script searching mpd lib and playing selection
[khome.git] / home / bin / mpplay
1 #! /bin/sh
2
3 set -e
4
5 # TODO: Get theme-appropriate font and colors from some central config file.
6
7 FONT_NAME='terminus'
8 FONT_SIZE=32
9 FONT="$FONT_NAME:pixelsize=$FONT_SIZE:antialias=false:autohint=true"
10 BG_NORM='#3a3a3a'
11 FG_NORM='#dcdccc'
12 BG_SELECTED="$BG_NORM"
13 FG_SELECTED='#72d5a3'
14 LINES=60
15
16 path=$(
17 mpc listall | dmenu \
18 -i \
19 -l "$LINES" \
20 -fn "$FONT" \
21 -nb "$BG_NORM" \
22 -nf "$FG_NORM" \
23 -sb "$BG_SELECTED" \
24 -sf "$FG_SELECTED"
25 )
26
27 mpc insert "$path"
28 mpc play
29 mpc next
This page took 0.073 seconds and 4 git commands to generate.