dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 8fb9f4058269c5700abf4add7399da99fdaaad85
parent 19ab80e2369cc21e996d202ca31262779a7c4dc2
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Mon, 27 Jul 2020 19:25:27 +0200

youtube-mpv-player: notify when adding to queue even on first

Former-commit-id: c4ee5a734abb9c0604c5bb4869ba2f3ef3939a3c
Diffstat:
Mscripts/youtube-mpv-player | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/youtube-mpv-player b/scripts/youtube-mpv-player @@ -2,11 +2,11 @@ if [[ ! -p $HOME/.cache/mpv/input ]]; then mkfifo $HOME/.cache/mpv/input fi -if pgrep -f MPV-Q > /dev/null -then +if pgrep -f MPV-Q > /dev/null; then printf "%s\n" "loadfile \"$1\" append-play" > $HOME/.cache/mpv/input terminal-notifier -title "Video queued" -message "Added to queue successfully" -group "mpv" &>/dev/null else + terminal-notifier -title "Playing video" -message "MPV is launching..." -group "mpv" &>/dev/null mpv --idle=yes --volume=50 --no-terminal --x11-name=MPV-Q --input-file=$HOME/.cache/mpv/input --player-operation-mode=pseudo-gui "$1" & fi