summaryrefslogtreecommitdiff
path: root/scripts/mpc_add_recent.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2024-05-04 01:15:19 +0100
committerdavidovski <david@davidovski.xyz>2024-05-04 01:15:19 +0100
commit416cb1a8dd5bf3ed6f426048843c95c2e2550f27 (patch)
tree023a75cf0b5926fa25c62f6be923e589bfab0d57 /scripts/mpc_add_recent.sh
parent2596f818e085ed724597ecb0028ec2536392203b (diff)
add more transparency
Diffstat (limited to 'scripts/mpc_add_recent.sh')
-rwxr-xr-xscripts/mpc_add_recent.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mpc_add_recent.sh b/scripts/mpc_add_recent.sh
index 356ad6f..e025eb5 100755
--- a/scripts/mpc_add_recent.sh
+++ b/scripts/mpc_add_recent.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# add recently added files to the playlist
-count=${1:-25}
+count=${1:-10}
cd ~/music
-find . -type f -print0 | xargs -0 stat -c"%Y %n" | sort -n | tail -${count} |cut -d' ' -f2- | while read -r line; do mpc insert "${line#./}"; done
+find . -type f -print0 | xargs -0 stat -c"%Y %n" | sort -n | tail -${count} |cut -d' ' -f2- | while read -r line; do printf "%s\n" "$line" ; mpc insert "${line#./}"; done