summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-08-02 21:26:17 +0200
committerRasmus Steinke <rasi@xssn.at>2015-08-02 21:26:17 +0200
commitbb853eeaf530cde924a872873a95c6252618e41c (patch)
tree4004fd129d00f5c563e3ca983f8df066a2908d3a
parent83113875676a4aadd661b5f86a796cf6ff95fcaa (diff)
downloadperl-app-clerk-bb853eeaf530cde924a872873a95c6252618e41c.tar.gz
perl-app-clerk-bb853eeaf530cde924a872873a95c6252618e41c.tar.xz
update to new syntax arguments
-rwxr-xr-xclerk4
1 files changed, 2 insertions, 2 deletions
diff --git a/clerk b/clerk
index 7febc57..3f451b3 100755
--- a/clerk
+++ b/clerk
@@ -672,7 +672,7 @@ dplayQueue () {
fi
- TRACKDISPLAY=$(printf "%s\n" "${TRACKDISPLAY[@]}" | rofi -custom-kb-1 "${play}" -custom-kb-2 "${delete}" -custom-kb-3 "${rate}" -dmenu -l $POS -mesg "<span color='$help_color'>${play}: Play, ${delete}: Delete, ${rate}: Rate</span>" -p "Current Queue > ")
+ TRACKDISPLAY=$(printf "%s\n" "${TRACKDISPLAY[@]}" | rofi -custom-kb-1 "${play}" -custom-kb-2 "${delete}" -custom-kb-3 "${rate}" -dmenu -selected-row $POS -mesg "<span color='$help_color'>${play}: Play, ${delete}: Delete, ${rate}: Rate</span>" -p "Current Queue > ")
tempval=$?
val=$tempval
@@ -1178,7 +1178,7 @@ ${addall}: Add &amp; Play, ${insertall}: Insert &amp; Play</span>"
if [[ -z $line ]]; then
select_temp=$(printf "%s\n" "${menu[@]}" | rofi -custom-kb-1 "${add}" -custom-kb-2 "${insert}" -custom-kb-3 "${replace}" -custom-kb-4 "${addplay}" -custom-kb-5 "${insertplay}" -dmenu -format "i¬s" -mesg "${HELP}" -p "Select Album > ")
else
- select_temp=$(printf "%s\n" "${menu[@]}" | rofi -custom-kb-1 "${add}" -custom-kb-2 "${insert}" -custom-kb-3 "${replace}" -custom-kb-4 "${addplay}" -custom-kb-5 "${insertplay}" -dmenu -l $(( $line + 1 )) -format "i¬s" -mesg "${HELP}" -p "Select Album > ")
+ select_temp=$(printf "%s\n" "${menu[@]}" | rofi -custom-kb-1 "${add}" -custom-kb-2 "${insert}" -custom-kb-3 "${replace}" -custom-kb-4 "${addplay}" -custom-kb-5 "${insertplay}" -dmenu -selected-row $(( $line + 1 )) -format "i¬s" -mesg "${HELP}" -p "Select Album > ")
fi
val=$?