diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-09-01 03:28:50 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-09-01 03:28:50 +0200 |
commit | 873a5cfa75feccbe834e05ea8ff743685113f10a (patch) | |
tree | ff62ab0878eeaaf51adf57f42f6464dd30f6039f /clerk | |
parent | d4e2dc01e58efabe6d1abd6267ec3940f0bd9931 (diff) | |
download | perl-app-clerk-873a5cfa75feccbe834e05ea8ff743685113f10a.tar.gz perl-app-clerk-873a5cfa75feccbe834e05ea8ff743685113f10a.tar.xz |
make moving of songs work without previous delection
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -585,6 +585,8 @@ dplayQueue () { if [[ "$POS" =~ $re ]]; then if [[ $last != $(mpc -f '%file%' playlist | tail -1) ]]; then POS=$(echo $(( $POS + 5 ))) + elif [[ -z $last ]]; then + POS=$(echo $(( $POS +2 ))) else POS=$(echo $(( $POS + 6 ))) fi @@ -632,11 +634,11 @@ TRACKDISPLAY=$(echo -e "< Return\n---\nLoad Playlist\nLoad RSS\nSave Playlist\n- elif [[ $val -eq 16 ]]; then mpc mv $POS $(echo $(( $POS + 1 ))) - POS=$POS; + POS=$(echo $(( $POS +1 ))) elif [[ $val -eq 15 ]]; then mpc mv $POS $(echo $(( $POS - 1 ))) - POS=$(( $POS - 2)); + POS=$(echo $(( $POS - 1))); elif [[ $val -eq 17 ]]; then suspendPlaylist |