From f2142085401cd9976526a4707c75a12a3ef511c9 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Wed, 16 Sep 2020 12:52:05 +0200 Subject: [PATCH] added video slideshows, useful for the chans modified: .config/qutebrowser/autoconfig.yml new file: .local/bin/tools/mpvallvids --- .config/qutebrowser/autoconfig.yml | 5 +++++ .local/bin/tools/mpvallvids | 2 ++ 2 files changed, 7 insertions(+) create mode 100755 .local/bin/tools/mpvallvids diff --git a/.config/qutebrowser/autoconfig.yml b/.config/qutebrowser/autoconfig.yml index 2d99f63..747321d 100644 --- a/.config/qutebrowser/autoconfig.yml +++ b/.config/qutebrowser/autoconfig.yml @@ -10,9 +10,11 @@ settings: global: normal: ',C': spawn -d st castyt {url} + ',S': spawn -d mpvallvids {url} ',V': spawn -d mpv {url} ',X': spawn -d dmenuhandler {url} ',c': hint links spawn -d st castyt {hint-url} + ',s': hint links spawn -d mpvallvids {hint-url} ',v': hint links spawn -d mpv {hint-url} ',x': hint links spawn -d dmenuhandler {hint-url} content.desktop_capture: @@ -61,11 +63,14 @@ settings: global: true url.default_page: global: https://searx.bocken.org + url.open_base_url: + global: true url.searchengines: global: DEFAULT: https://searx.bocken.org/?q={}&categories=general&language=en-US ddg: https://duckduckgo.com/?q={} ling: https://www.linguee.com/english-german/search?source=auto&query={} + oz: http://www.ozdic.com/collocation-dictionary/{} sx: https://searx.bocken.org/?q={}&categories=general&language=en-US yt: https://www.youtube.com/results?search_query={} url.start_pages: diff --git a/.local/bin/tools/mpvallvids b/.local/bin/tools/mpvallvids new file mode 100755 index 0000000..4daa163 --- /dev/null +++ b/.local/bin/tools/mpvallvids @@ -0,0 +1,2 @@ +#!/bin/sh +lynx --dump --listonly --nonumbers "$1" | grep '\.webm$' | uniq | xargs mpv