diff --git a/bin/aliases b/bin/aliases index 4e6c39e..6e1df56 100755 --- a/bin/aliases +++ b/bin/aliases @@ -17,6 +17,7 @@ a clip 'xclip -sel clip' a cpugov 's cpupower frequency-set -g performance' a dirdl 'wget -r -k -p --no-parent --no-clobber -e robots=off -R "index.html*"' 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 ff 'fd -HILi -Edosdevices -E.git' a g git @@ -68,6 +69,8 @@ a foldwarf 'appdwarf -f $argv .;:' a redwarf 'mkdwarfs -o redwarf.dwarfs --recompress -i' a squash 'mksquashfs . $PWD.squashfs -comp zstd -b 1M -Xcompression-level 22' a undwarfs 'mkdir dwarfs-root; dwarfsextract -o dwarfs-root -i' +a xcompress 'fxz -T0 -9 -k' +a zipmount 'fuse-zip -f $argv (mktemp -d | tee /dev/tty /dev/stderr 2>| clip);:' for i in (cat ~/.config/qutebrowser/quickmarks | cut -d ' ' -f1) a $i "qutebrowser-profile --load $i \":open $i\"" @@ -78,8 +81,8 @@ for i in deemix nsz scdl soundscrape spleeter end function alpine - set url https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64 - set file (curl $url/latest-releases.yaml | grep file: | head -n1 | cut -d\ -f4) + set url https://dl-cdn.alpinelinux.org/alpine/edge/releases/x86_64/ + set file (curl $url | grep s-2 | tac | sed -n 3p | cut -d\" -f2) mkdir alpine; curl $url/$file | tar xf - -Calpine cp /etc/resolv.conf alpine/etc proot -r alpine diff --git a/bin/awall b/bin/awall index 114f0be..edb9e85 100755 --- a/bin/awall +++ b/bin/awall @@ -1,12 +1,9 @@ #!/bin/sh -if [ "$#" -ge 1 ]; then - rm ~/Pictures/.wallp - echo ~/Pictures/Awall/"$1"* > ~/Pictures/.wallp -fi +[ "$#" -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 - convert ~/Pictures/Awall/wall.png -interpolate Integer -filter point -resize 1920x1080 -gravity center -background black -extent 1920x1080 ~/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/bin/drivedl b/bin/drivedl deleted file mode 100755 index 9a962d7..0000000 --- a/bin/drivedl +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -cook=$(mktemp) -link="https://docs.google.com/uc?export=download&id=$(echo "$1"| cut -d/ -f6)" -code=$(wget --save-cookies "$cook" "$link" -O- | grep -Eo "confirm=[0-9A-Za-z_]+") -aria2c --load-cookies "$cook" "$link&$code" -c -x16 -s16 diff --git a/qutebrowser/bindings.py b/qutebrowser/bindings.py index aaae094..fd3688f 100644 --- a/qutebrowser/bindings.py +++ b/qutebrowser/bindings.py @@ -16,8 +16,8 @@ bind = { '': 'close', '': 'spawn -u readability', '': 'tab-close', - '': 'ao3-first', - '': 'ao3-latest', + '': 'ao3-latest', + '': 'ao3-first', '' : 'config-cycle hints.chars qwerasdf asdfghjkl', ',': 'hint links run spawn -mdv mpv {hint-url}', ';a': 'hint links run ' + kitdl + ' dl {hint-url}"', diff --git a/qutebrowser/config.py b/qutebrowser/config.py index f53a277..f9e07e9 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -16,6 +16,7 @@ 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['m'] = 'morty.ononoki.org/?mortyurl={}' 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 3b04098..e596064 100644 --- a/qutebrowser/user.scss +++ b/qutebrowser/user.scss @@ -42,14 +42,14 @@ ul.work > li.download { } $class: ad-frame-container, ad-panel, ad-slot, adsbygoogle, -adbox, adunit, adunit-wrapper, b_ad, leaderboard; +adbox, adunit, adunit-wrapper, b_ad, leaderboard, pure-u-lg-1-5; @each $i in $class {.#{$i} {display:none}} $div: 'class*=-ad-container', 'class*=ad-wrapper', 'id*=_ad_native', 'id^=div-gpt-ad', 'id^=google_ads_', 'id^=netboard_', 'id^=skyscraper'; @each $i in $div {div[#{$i}] {display:none}} -$id: ads, leaderboard, player-ads, rc-row-container; +$id: ads, comments, leaderboard, player-ads, rc-row-container; @each $i in $id {##{$i} {display:none}} body {