diff options
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -620,8 +620,12 @@ songs () { } position () { - current=$(mpc current -f '%position%') - echo $(( $current +5 )) + if [[ -n $(mpc current) ]]; then + current=$(mpc current -f '%position%') + 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 > ") |