mpv script imporvment
This commit is contained in:
parent
e757693059
commit
20110a0d5c
|
@ -133,6 +133,12 @@
|
||||||
bind-key gg home
|
bind-key gg home
|
||||||
bind-key l open
|
bind-key l open
|
||||||
bind-key h quit
|
bind-key h quit
|
||||||
macro c set browser "setsid -f mpv --no-terminal %u &" ; open-in-browser ; set browser "elinks %u" '';
|
macro o set browser "setsid -f mpv --no-terminal %u &" ; open-in-browser ; set browser "elinks %u"
|
||||||
|
# color listnormal white black
|
||||||
|
color listnormal_unread black white bold
|
||||||
|
color listfocus white blue bold
|
||||||
|
color listfocus_unread white blue bold
|
||||||
|
color info white blue
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Get the link from the clipboard using wl-paste
|
|
||||||
link=$(wl-paste)
|
link=$(wl-paste)
|
||||||
|
|
||||||
# Check if a link was provided
|
|
||||||
if [ -n "$link" ]; then
|
if [ -n "$link" ]; then
|
||||||
# Open the link in mpv
|
mpv "$link" &
|
||||||
mpv "$link"
|
|
||||||
|
notify-send "Opening Link" "$link" --icon=video-x-generic
|
||||||
else
|
else
|
||||||
echo "No URL provided."
|
notify-send "Error" "No URL provided." --icon=dialog-error
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue