Aleksas Tunikas <[email protected]> writes: > thank you Yoni i used chatgpt to generate this script,
...so we definitely can't add that the manual. > to be honest i don't want to get back there, I read in the manual that > you can manipulate the indexed files roughly the same way that's why > i'm asking about quick access to it, i know you can program it in lisp > but being a taxi driver and not a proficient coder not allowes me to > make an intuitive decission about how to do this. It's all good. I hope people will find the script useful. > Yoni Rabkin <[email protected]> writes: > >> Aleksas Tunikas <[email protected]> writes: >> >>> #!/bin/bash >>> >>> # Define the directory to search for media files >>> MEDIA_DIR="/storage/Audio/" >>> >>> # Use dmenu to display a list of directories containing media files >>> DIR=$(find $MEDIA_DIR -type d -iname "*" | dmenu -nb '#2e3440' -nf >>> '#d8dee9' -i -l 20 -p "Choose a directory:") >>> >>> # Check if the user pressed Escape >>> if [ -z "$DIR" ]; then >>> exit 0 >>> fi >>> >>> # Use EMMS to play all media files in the chosen directory >>> emacsclient -e "(progn (require 'emms-setup) (emms-all) >>> (emms-play-directory \"$DIR\") (message \"Now playing: %s\" >>> \"$DIR\"))" >> >> Thank you. >> >> This might be worth adding to the manual. >> >> >>> On Fri, Aug 11, 2023 at 3:48 PM Yoni Rabkin <[email protected]> wrote: >>> >>>> Aleksas Tunikas <[email protected]> writes: >>>> >>>> > friends, i have a great success integrating into my modest environment >>>> > with dmenu as app launcher (script here http://ix.io/4C9N) i understand >>>> > that browser function (which i not fully understand yet) will be able to >>>> > playback depending by the genre and i am looking forward to make another >>>> > version of the script that will let me do that. i hope everybody have a >>>> lot >>>> > of fun with this software, i myself has been using it forewer, or >>>> > something which feels like that, maybe three-four-five years, >>>> > exclusively as my main media center. guess this message already too >>>> > explicit, we should thank my coffee machine for that. everyone, have a >>>> > great Friday! God bless. >>>> >>>> Instead of a link, can you please attach the script to the mail message? >>>> >>>> -- >>>> "Cut your own wood and it will warm you twice" >>>> -- "Cut your own wood and it will warm you twice"
