From 54c6b0a122cd9a59ed8be0d631ae1f97bab7f6b9 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 4 Apr 2024 18:04:16 +0100 Subject: transparent st --- scripts/mpc_add_query.sh | 2 +- scripts/mpc_add_recent.sh | 2 +- scripts/websearch | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/mpc_add_query.sh b/scripts/mpc_add_query.sh index adc820a..08a1c20 100755 --- a/scripts/mpc_add_query.sh +++ b/scripts/mpc_add_query.sh @@ -2,4 +2,4 @@ query=${1} cd ~/music -find . -iname "*$query*" -type f | while read -r line; do mpc insert "${line#./}"; done +find . -iname "*$query*" -type f | while read -r line; do echo "$line"; mpc insert "${line#./}"; done 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 diff --git a/scripts/websearch b/scripts/websearch index 7af5b57..26e0896 100755 --- a/scripts/websearch +++ b/scripts/websearch @@ -1,4 +1,7 @@ #!/bin/sh +# +# +# TODO make this list results in rofi/dmenu that would be coo default_browser="links-launcher" BROWSER=${BROWSER:-$default_browser} -- cgit v1.2.1