From 599de5689408ee5efb57a8c105dedddcafefd4d4 Mon Sep 17 00:00:00 2001 From: Phantop Date: Sat, 28 May 2022 13:45:52 -0400 Subject: [PATCH] fish: awall alias; qute: librex; yt-dlp: sponsoblock --- bin/aliases | 1 + bin/awall | 9 --------- qutebrowser/config.py | 7 ++++--- qutebrowser/user.scss | 4 ++-- yt-dlp/config | 1 + 5 files changed, 8 insertions(+), 14 deletions(-) delete mode 100755 bin/awall diff --git a/bin/aliases b/bin/aliases index 6e1df56..f8341b3 100755 --- a/bin/aliases +++ b/bin/aliases @@ -11,6 +11,7 @@ a acmus 'timeout (math 60 - (date +%M))m mpv --loop https://acmusicext.com/stati a aliases 'v (env which aliases); command aliases' a all2jxl 'fd -e{pn,jp}g -x cjxl -e 8 -d 0 {} {.}.jxl \; -x rm' a ao3 'grep works/.\*/b $argv | cut -d/ -f3 | parallel curl -OJL ao3.org/downloads/{}/1.epub;:' +a awall 'xwinwrap -ni -fdt -fs -- mpv -wid WID ~/Pictures/Awall/$argv* --profile=wallpaper' a base64d 'echo (echo $argv | base64 -d 2>/dev/null) | tee /dev/stderr 2>| clip;:' a catbox 'curl https://catbox.moe/user/api.php -F reqtype=fileupload -F fileToUpload=@$argv;:' a clip 'xclip -sel clip' diff --git a/bin/awall b/bin/awall deleted file mode 100755 index edb9e85..0000000 --- a/bin/awall +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -[ "$#" -ge 1 ] && echo ~/Pictures/Awall/"$1"* > ~/Pictures/.wallp -pkill -f "mpv.*wallpaper" -nohup xwinwrap -ni -fdt -fs -- mpv -wid WID "$(cat ~/Pictures/.wallp)" --profile=wallpaper >/dev/null 2>&1 & -if [ "$#" -ge 1 ]; then - ffmpeg -i "$(cat ~/Pictures/.wallp)" -vframes 1 -y ~/Pictures/Awall/wall.png - mogrify -interpolate Integer -filter point -resize 1920x1080 -gravity center -background black -extent 1920x1080 ~/Pictures/Awall/wall.png - gsettings set org.gnome.desktop.background picture-uri file://"$HOME"/Pictures/Awall/wall.png -fi diff --git a/qutebrowser/config.py b/qutebrowser/config.py index f9e07e9..7b52473 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -13,10 +13,11 @@ c.downloads.location.directory = '~/Downloads' c.qt.workarounds.remove_service_workers = True c.url.searchengines['DEFAULT'] = 'farside.link/searxng/search?q={}' -c.url.searchengines['y'] = 'farside.link/invidious/search?q={}' -c.url.searchengines['t'] = 'ao3.org/tags/{}' -c.url.searchengines['!'] = 'duckduckgo.com/?q=!{}' +c.url.searchengines['l'] = 'librex.elpengu.com/search.php?q={}' c.url.searchengines['m'] = 'morty.ononoki.org/?mortyurl={}' +c.url.searchengines['t'] = 'ao3.org/tags/{}' +c.url.searchengines['y'] = 'farside.link/invidious/search?q={}' +c.url.searchengines['!'] = 'duckduckgo.com/?q=!{}' c.url.start_pages = c.url.default_page = 'megafocs.herokuapp.com' config.source('adblock.py') diff --git a/qutebrowser/user.scss b/qutebrowser/user.scss index e596064..b32ac46 100644 --- a/qutebrowser/user.scss +++ b/qutebrowser/user.scss @@ -41,8 +41,8 @@ ul.work > li.download { } } -$class: ad-frame-container, ad-panel, ad-slot, adsbygoogle, -adbox, adunit, adunit-wrapper, b_ad, leaderboard, pure-u-lg-1-5; +$class: ad-frame-container, ad-panel, ad-slot, adsbygoogle, adbox, adunit, +adunit-wrapper, b_ad, leaderboard, "pure-u-lg-1-5:nth-child(3)"; @each $i in $class {.#{$i} {display:none}} $div: 'class*=-ad-container', 'class*=ad-wrapper', 'id*=_ad_native', diff --git a/yt-dlp/config b/yt-dlp/config index ec1418b..912845a 100644 --- a/yt-dlp/config +++ b/yt-dlp/config @@ -6,3 +6,4 @@ --compat-options no-keep-subs -S lang,quality,res,fps,hdr:12,acodec,size,br,vcodec,asr,proto,ext,hasaud,source,id -o "%(title)s.%(ext)s" +--sponsorblock-remove all