spawned windows now independent
This commit is contained in:
parent
2369c50c22
commit
202ced921c
3 changed files with 9 additions and 8 deletions
|
@ -30,8 +30,9 @@ color article cyan default
|
|||
|
||||
browser linkhandler
|
||||
macro , open-in-browser
|
||||
macro v set browser "i3 exec mpv"; open-in-browser ; set browser linkhandler
|
||||
macro y set browser "spawndl"; open-in-browser ; set browser linkhandler
|
||||
macro t set browser "tsp youtube-dl"; open-in-browser ; set browser linkhandler
|
||||
macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandler
|
||||
macro y set browser "setsid nohup spawndl"; open-in-browser ; set browser linkhandler
|
||||
macro w set browser "w3m"; open-in-browser ; set browser linkhandler
|
||||
macro p set browser "dmenuhandler"; open-in-browser ; set browser linkhandler
|
||||
# c copies the link to the clipboard.
|
||||
|
|
|
@ -16,8 +16,8 @@ case "$x" in
|
|||
mpv) mpv -quiet "$1" 2&>/dev/null & disown ;;
|
||||
"mpv (loop)") mpv -quiet --loop "$1" 2&>/dev/null & disown ;;
|
||||
wget) wget "$1" 2&>/dev/null & disown ;;
|
||||
browser) $BROWSER "$1" 2&>/dev/null & disown ;;
|
||||
browser) setsid nohup $BROWSER "$1" & disown ;;
|
||||
feh) feh "$1" 2&>/dev/null & disown ;;
|
||||
w3m) w3m "$1" 2&>/dev/null & disown ;;
|
||||
"mpv (float)") mpv --geometry=+0-0 --autofit=30% --title="mpvfloat" /dev/video0 "$1" 2&>/dev/null & disown ;;
|
||||
"mpv (float)") mpv --geometry=+0-0 --autofit=30% --title="mpvfloat" "$1" 2&>/dev/null & disown ;;
|
||||
esac
|
||||
|
|
|
@ -17,13 +17,13 @@ fehFiles="png jpg jpeg jpe"
|
|||
wgetFiles="mp3 flac opus mp3?source=feed pdf"
|
||||
|
||||
if echo $fehFiles | grep -w $ext > /dev/null; then
|
||||
feh "$1" >/dev/null & disown
|
||||
setsid nohup feh "$1" >/dev/null & disown
|
||||
elif echo $mpvFiles | grep -w $ext > /dev/null; then
|
||||
mpv -quiet "$1" > /dev/null & disown
|
||||
setsid nohup mpv -quiet "$1" > /dev/null & disown
|
||||
elif echo $wgetFiles | grep -w $ext > /dev/null; then
|
||||
wget "$1" >/dev/null & disown
|
||||
elif echo "$@" | grep "$vidsites">/dev/null; then
|
||||
mpv -quiet "$1" > /dev/null & disown
|
||||
setsid nohup mpv -quiet "$1" > /dev/null & disown
|
||||
else
|
||||
$BROWSER "$1" 2>/dev/null & disown
|
||||
setsid nohup $BROWSER "$1" 2>/dev/null & disown
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue