diff --git a/bin/batman b/bin/batman new file mode 100755 index 0000000..4244604 --- /dev/null +++ b/bin/batman @@ -0,0 +1,2 @@ +#!/bin/sh +col -bx < "$1" | bat --language man -p diff --git a/qutebrowser/autoconfig.yml b/qutebrowser/autoconfig.yml index 319076e..c24d89e 100644 --- a/qutebrowser/autoconfig.yml +++ b/qutebrowser/autoconfig.yml @@ -10,6 +10,7 @@ settings: global: normal: ',p': spawn --userscript qutepocket + ',m': spawn --userscript view_in_mpv content.canvas_reading: global: false content.geolocation: diff --git a/qutebrowser/userscripts/view_in_mpv b/qutebrowser/userscripts/view_in_mpv new file mode 100755 index 0000000..4729204 --- /dev/null +++ b/qutebrowser/userscripts/view_in_mpv @@ -0,0 +1,143 @@ +#!/usr/bin/env bash +# +# Behavior: +# Userscript for qutebrowser which views the current web page in mpv using +# sensible mpv-flags. While viewing the page in MPV, all