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

@ -74,7 +74,7 @@ command aud js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_
unbind t
"" Adding my own bindings
bind v composite hint -pipe a href | js -p tri.excmds.shellescape(JS_ARG) | exclaim_quiet mpl
bind v composite hint -pipe a href | js -p tri.excmds.shellescape(JS_ARG) | exclaim_quiet empv
bind gt hint -W torrent
bind gv current_url mpv
bind ga hint -W aud

View file

@ -1068,7 +1068,7 @@ end
padding.y = 10;
dynamic_padding = true;
};
shell.program = "nu";
shell.program = "fish";
font = {
normal = {
family = "VictorMono Nerd Font";
@ -1124,6 +1124,7 @@ end
enable = true;
enableNushellIntegration = true;
enableBashIntegration = true;
enableFishIntegration = true;
settings = {
format = ''
[\[](fg:#78787e) $username$hostname$directory[\]](fg:#78787e) [$cmd_duration$time$status](italic fg:#78787e)

View file

@ -135,8 +135,8 @@ with lib;
# };
# })
kdenlive
olive-editor
davinci-resolve
# olive-editor
# davinci-resolve
natron
glaxnimate
mediainfo

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"