X-Git-Url: http://git.draconx.ca/gitweb/fvwmconf.git/blobdiff_plain/c6f5c393eef5f19621f50b2caecaab2136fc443e..74a217f96316193daa602b8a5f4a81cc922a42af:/scripts/mpdmenu.pl diff --git a/scripts/mpdmenu.pl b/scripts/mpdmenu.pl index 25a56b3..ca7d2be 100755 --- a/scripts/mpdmenu.pl +++ b/scripts/mpdmenu.pl @@ -104,7 +104,8 @@ if (defined $album) { $t_title = sanitise($t_title, 0); my $cmd = sprintf "AddToMenu $menu \"%d\t%s - %s\"" - ." Exec mpc playid %d", + ." Exec exec $FVWM/scripts/mpdexec.pl" + ." playid %d", $t_trackno, $t_artist, $t_title, $t_id; cmd($cmd); @@ -200,6 +201,9 @@ if (defined $album) { s/\s+(instrumental|off vocal|short|tv)([\s-]+(mix|size|version))?$//i; s/\s+without\s+\w+$//i; + # Deal with separate movements in classical pieces. + s/: [IVX]+\..*//; + my $basetitle = $_; my $_basetitle = $basetitle; @@ -245,7 +249,9 @@ if (defined $album) { $thumb =~ s/\n//sg; $thumb = "%$thumb%" if (-f $thumb); - cmd("AddToMenu $menu \"$thumb$t_artist - $t_title\" Exec mpc playid $t_id"); + cmd("AddToMenu $menu \"$thumb$t_artist - $t_title\"" + ." Exec exec $FVWM/scripts/mpdexec.pl" + ." playid $t_id"); } } # end use locale workaround } else { @@ -295,7 +301,7 @@ if (defined $album) { if (-f $thumb) { cmd("AddToMenu $menu \"*$thumb*\" " - ."Exec exec gqview ".shellify($scan, 0)); + ."Exec exec geeqie ".shellify($scan, 0)); } cmd("AddToMenu $menu \"Title: ".sanitise($entry{Title}, 0) ."\" Popup MenuMPDTitle");