summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-08-04 00:41:44 +0200
committerRasmus Steinke <rasi@xssn.at>2014-08-04 00:41:44 +0200
commit533793926ecea546636ec883cb019e598027a592 (patch)
tree996615d081ec4ac64fa14e4734793e0b5e432188 /clerk
parent2939cb77107001f2b7f2af7c6accfd5704a88060 (diff)
downloadperl-app-clerk-533793926ecea546636ec883cb019e598027a592.tar.gz
perl-app-clerk-533793926ecea546636ec883cb019e598027a592.tar.xz
small changes
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk10
1 files changed, 6 insertions, 4 deletions
diff --git a/clerk b/clerk
index 570283c..fb4bae0 100755
--- a/clerk
+++ b/clerk
@@ -184,7 +184,7 @@ infoPrompt () {
"1 Artist Info"
"2 Album Info"
"3 Current Track Lyrics"
- "4 Show current Tracks Tags")
+ "4 Current Track Tags")
prompt() {
printf "%s\n" "$@" | dmenu_t -p "MPD Menu: > "
@@ -194,13 +194,15 @@ infoPrompt () {
1*) surfraw yubnub allmusic $(mpc current -f %artist%) ;;
2*) surfraw yubnub allmusic $(mpc current -f %album%) ;;
3*) surfraw yubnub google $(mpc current -f %title%) $(mpc current -f %artist%) lyrics ;;
- 4*) mpc current --format "Artist: %artist%\nAlbum: %album%\nDate: %date%\nTrack: %track%\nTitle: %title%" | dmenu_t -p 'tags' && dplayPrompt;;
+ 4*) currentTag ;;
0*) dplayPrompt ;;
*) exit
esac
}
-
+currentTag () {
+ mpc current --format "Artist: %artist%\nAlbum: %album%\nDate: %date%\nTrack: %track%\nTitle: %title%" | dmenu_t -p 'Tags > ' && dplayPrompt
+}
dplayOptionsPrompt () {
export status="$(mpc status)"
@@ -1083,7 +1085,7 @@ elif [[ "$1" == "-ra" ]]; then
elif [[ "$1" == "-rs" ]]; then
playRandomTracks
elif [[ "$1" == "-show" ]]; then
- notify-send "$(mpc current --format '%artist% - %title%')" "$(mpc current --format '\n%date% %album%')"
+ currentTag
elif [[ "$1" == "-lrated" ]]; then
mpc clear && for ((i=4; i<="5"; i++)); do mpc find comment "$i" | shuf | head -n "$value" | mpc add; done && mpc play
elif [[ "$1" == "-library" ]]; then