adding empv script to add mpv from firefox to empv in emacs

This commit is contained in:
Chris Cochrun 2024-07-16 10:14:47 -05:00
parent e727f4afa1
commit 73dd975c7e
4 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,7 @@
#!/bin/sh
#!/usr/bin/env fish
emacsclient -e "(message (car server-eval-args-left))" $1
set arg "(empv-enqueue-last \""$argv[1]"\")"
echo $arg
set title (yt-dlp --get-title $argv[1])
echo $title added
emacsclient -e $arg && notify-send $title" has been added to the queue"