function dlna
    set -l cmd minidlnad -d -R
    set -a cmd -f $XDG_CONFIG_HOME/minidlna/minidlna.conf
    set -a cmd -P $XDG_DATA_HOME/minidlna/minidlna.pid

    type -q caffeinate
    set cmd caffeinate $cmd

    eval $cmd
end
