summaryrefslogtreecommitdiff
path: root/scripts/mpc_add_recent.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2024-04-04 18:04:16 +0100
committerdavidovski <david@davidovski.xyz>2024-04-04 18:04:29 +0100
commit54c6b0a122cd9a59ed8be0d631ae1f97bab7f6b9 (patch)
tree88c6263c862ca7b8e56aa0c271cfa766dc85feb0 /scripts/mpc_add_recent.sh
parent51937c18e693e12b51b4a7f4a295bf79fefea8c4 (diff)
transparent st
Diffstat (limited to 'scripts/mpc_add_recent.sh')
-rwxr-xr-xscripts/mpc_add_recent.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mpc_add_recent.sh b/scripts/mpc_add_recent.sh
index 7465e0e..356ad6f 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:-10}
+count=${1:-25}
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