From a19cc3c950cf9468b2ecebcc460c033f29d2e0ff Mon Sep 17 00:00:00 2001 From: Phantop Date: Sun, 11 Sep 2022 19:38:40 -0400 Subject: [PATCH] bin: some cleanup/management; qute: librex --- bin/aliases | 1 + bin/optiall | 3 --- bin/setup | 13 +++++++------ qutebrowser/config.py | 5 ++--- qutebrowser/redirects.py | 1 + 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/bin/aliases b/bin/aliases index f4bcd7a..eef552b 100755 --- a/bin/aliases +++ b/bin/aliases @@ -20,6 +20,7 @@ a dirdl 'wget -r -k -p -np -nc e robots=off' a dl 'not test "$argv" && cd ~/Downloads || aria2c -c -{j,s,x}16' a drivedl 'dl https://docs.google.com/uc?export=download&id=(echo $argv | cut -d/ -f6)&confirm=t' a dot 'cd ~/.dotfiles' +a epubpack 'cd $argv && zip -0rX ../(basename $argv).epub mimetype *; cd ..;:' a ff 'fd -HILi -Edosdevices -E.git' a g git a giveme 's chown $USER' diff --git a/bin/optiall b/bin/optiall index 9b4d565..65633f7 100755 --- a/bin/optiall +++ b/bin/optiall @@ -1,10 +1,7 @@ #!/bin/sh -fd -e pdf -x cpdfsqueeze {} {} fd -e pdf -x qpdf --stream-data=compress --replace-input --compress-streams=y --recompress-flate --compression-level=9 --optimize-images {} -fd -e png -x oxipng fd -e jpg -e jpeg -x jpegoptim -fd -e png -e jpg -e jpeg g -X pingo -s9 fd -e webp -x cwebp -z 9 -mt {} -o {} fd -t f -x advzip -z3 diff --git a/bin/setup b/bin/setup index 7779f43..aa84cd8 100755 --- a/bin/setup +++ b/bin/setup @@ -5,12 +5,13 @@ alias s=sudo se="s eopkg -y" g=git gnome="gnome-photos gnome-mpv gnome-terminal nautilus rhythmbox" se rm $gnome firefox libreoffice-common onboard thunderbird -a="advancecomp arcanist aria2 audacious audacity avidemux bleachbit caja ccache" -b="corectrl fd fish fzf gimp git-extras ifuse innoextract jpegoptim keepassxc kitty" -c="linux-tools-cpupower llvm-clang lrzip mkvtoolnix moreutils mpv ncdu neovim" -d="nicotine-plus nnn opus-tools p7zip parallel qt-creator qutebrowser ripgrep" -e="solbuild spek syncthing tig tlp tor upx usbmuxd yt-dlp zathura-mupdf" -se up; se it -c system.devel $a $b $c $d $e +a="advancecomp arcanist archivemount aria2 audacious audacity avidemux bleachbit" +b="caja ccache corectrl fd fish fuse-zip fzf gifsicle gimp git-extras ifuse" +c="innoextract jpegoptim keepassxc kitty linux-tools-cpupower llvm-clang lrzip lynx" +d="mkvtoolnix moreutils mpv ncdu neovim nicotine-plus nnn opus-tools p7zip parallel" +e="qt-creator qutebrowser ripgrep solbuild spek syncthing tig tlp tor upx usbmuxd" +f="yt-dlp zathura-mupdf" +se up; se it -c system.devel $a $b $c $d $e $f pip3 install adblock pipx-in-pipx readability-lxml stow --no-folding -d ~/.dotfiles -t ~/.config . diff --git a/qutebrowser/config.py b/qutebrowser/config.py index d42a99e..7a0a315 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -11,12 +11,11 @@ c.confirm_quit = ['downloads'] c.downloads.location.directory = '~/Downloads' c.qt.workarounds.remove_service_workers = True -c.url.searchengines['DEFAULT'] = 'farside.link/searxng/search?q={}' c.url.searchengines['l'] = 'farside.link/librex/search.php?q={}' c.url.searchengines['m'] = 'morty.ononoki.org/?mortyurl={}' -c.url.searchengines['t'] = 'ao3.org/tags/{}' +c.url.searchengines['s'] = 'farside.link/searxng/search?q={}' c.url.searchengines['y'] = 'farside.link/invidious/search?q={}' -c.url.searchengines['!'] = 'duck.com/?q=!{}' +c.url.searchengines['DEFAULT'] = c.url.searchengines['l'] c.url.start_pages = c.url.default_page = 'megafocs.fly.dev' config.source('adblock.py') diff --git a/qutebrowser/redirects.py b/qutebrowser/redirects.py index 86cb5cf..0e1a3a2 100644 --- a/qutebrowser/redirects.py +++ b/qutebrowser/redirects.py @@ -52,6 +52,7 @@ map = { "www.instagram.com": bibliogram, "translate.google.com" : simplytranslate, "vm.tiktok.com" : proxitok, + "www.tiktok.com" : proxitok, "www.quora.com": querte, "www.twitch.tv" : o(s, 'm.twitch.tv'),