diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-09-01 04:50:11 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-09-01 04:50:11 +0200 |
commit | 6112217fc0e258d7c1a1bc32943cbec6bc6b6430 (patch) | |
tree | 86b6b387958f329863c228e8111cf0539d39f8cc /clerk | |
parent | 20171323b6f97b2ceba4a3f6799ec3ea03dd4663 (diff) | |
download | perl-app-clerk-6112217fc0e258d7c1a1bc32943cbec6bc6b6430.tar.gz perl-app-clerk-6112217fc0e258d7c1a1bc32943cbec6bc6b6430.tar.xz |
do not highlight any line, when nothing is playing (again)
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -622,13 +622,13 @@ songs () { position () { if [[ -n $(mpc current) ]]; then current=$(mpc current -f '%position%') - echo $(( $current +5 )) + highlight="-u $(echo $(( $current +5 )))" else - echo "" + : fi } -TRACKDISPLAY=$(echo -e "< Return\n---\n> Load Playlist\n> Load RSS\n> Save Playlist\n---\n$(songs)" | dmenu_t -kb-custom-1 "${delete}" -kb-custom-2 "${rate}" -kb-custom-4 "${crop}" -kb-custom-5 "${clear}" -kb-custom-6 "${moveup}" -kb-custom-7 "${movedown}" -kb-custom-8 "${suspend}" -kb-custom-9 "${resume}" -dmenu $(echo "${select}") -u $(position) -mesg "${HELP}" -p "Current Queue > ") +TRACKDISPLAY=$(echo -e "< Return\n---\n> Load Playlist\n> Load RSS\n> Save Playlist\n---\n$(songs)" | dmenu_t -kb-custom-1 "${delete}" -kb-custom-2 "${rate}" -kb-custom-4 "${crop}" -kb-custom-5 "${clear}" -kb-custom-6 "${moveup}" -kb-custom-7 "${movedown}" -kb-custom-8 "${suspend}" -kb-custom-9 "${resume}" -dmenu $(echo "${select}") "$(position)" -mesg "${HELP}" -p "Current Queue > ") tempval=$? val=$tempval |