all repos — dotfiles @ 9aab5da5634dcc43772cb4c179bb4968450f27d5

linux dotfiles

update scripts
Prithu Goswami prithugoswami524@gmail.com
Fri, 05 Jun 2020 09:53:53 +0530
commit

9aab5da5634dcc43772cb4c179bb4968450f27d5

parent

7c3db9ad03aa3ed91895f6fc822ddd8138da727e

2 files changed, 15 insertions(+), 15 deletions(-)

jump to
M bin/scripts/linkhandlerbin/scripts/linkhandler

@@ -19,21 +19,21 @@ case "$1" in

*mkv|*webm|*mp4|*gif) setsid mpv -quiet "$1" >/dev/null 2>&1 & ;; *youtube.com*|*youtu.be*) - cq="" - q=$(echo -en "1080p\n720p\n480p\n360p\n240p" | dmenu $DMENU_ARGS\ - -p 'Quality ') - case $q in - "1080p") cq="-1" ;; - "720p") cq="-7" ;; - "480p") cq="-4" ;; - "360p") cq="-3" ;; - "240p") cq="-2" ;; - "") q="default";; - esac + # cq="" + # q=$(echo -en "1080p\n720p\n480p\n360p\n240p" | dmenu $DMENU_ARGS\ + # -p 'Quality ') + # case $q in + # "1080p") cq="-1" ;; + # "720p") cq="-7" ;; + # "480p") cq="-4" ;; + # "360p") cq="-3" ;; + # "240p") cq="-2" ;; + # "") q="default";; + # esac - notify-send -i youtube "Playing youtube video in $q quality" - # setsid mpv --ytdl-format=$ytdlfmt --quiet "$1" >/dev/null 2>&1 & ;; - setsid youtube-viewer $cq "$1" >/dev/null 2>&1 & ;; + # notify-send -i youtube "Playing youtube video in $q quality" + setsid mpv --ytdl-format=$ytdlfmt --quiet "$1" >/dev/null 2>&1 & ;; + #setsid youtube-viewer $cq "$1" >/dev/null 2>&1 & ;; *png|*jpg|*jpe|*jpeg) setsid feh "$1" >/dev/null 2>&1 & ;; *mp3|*flac|*opus|*mp3?source)
M bin/scripts/reddit-browsebin/scripts/reddit-browse

@@ -13,7 +13,7 @@ url="reddit.com/r/$1.json?after=$after"

fi wget --quiet -O - "$url" |\ tee /tmp/rtmp.json | jq '.data.children[] |.data.url' |\ - grep -E 'jpg|png"$' | xargs feh -F + grep -E 'jpg|png"$' | xargs feh -F 2>/dev/null after=$(cat /tmp/rtmp.json | jq '.data.after' | tr -d '"') printf "continue? [y/n]: "; read ans [ $ans = "n" ] && exit 0