emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dmenu filtering by genre


From: Aleksas Tunikas
Subject: Re: dmenu filtering by genre
Date: Fri, 11 Aug 2023 16:00:28 +0300
User-agent: mu4e 1.10.5; emacs 29.1

thank you Yoni i used chatgpt to generate this script, 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.

Yoni Rabkin <yoni@rabkins.net> writes:

> Aleksas Tunikas <mail@aleksas.ru> 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 <yoni@rabkins.net> wrote:
>>
>>> Aleksas Tunikas <mail@aleksas.ru> 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"
>>>


-- 
Aleksas Tunikas
http://www.aleksas.ru



reply via email to

[Prev in Thread] Current Thread [Next in Thread]