bin: comparedir, qute: searx, privoxy, ao3 tags

This commit is contained in:
Phantop 2022-04-09 15:38:29 -04:00
parent 1f3a6715bf
commit 6e1e9e272c
8 changed files with 28 additions and 22 deletions

9
bin/comparedir Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
IFS=$(printf '\n\t')
for i in $(fd -t f); do
if [ "$(du "$i" | cut -f1)" -lt "$(du "$1/$i" | cut -f1)" ]; then
echo "$i"
mv "$i" "$1/$i"
fi
done

View File

@ -1,22 +1,15 @@
#!/bin/sh
compare() {
cd out
for i in *; do
if [ `du "$i" | cut -f1` -lt `du ../"$i" | cut -f1` ]; then
echo $i
mv "$i" ../"$i"
fi
done
cd ..
}
mkdir out
args="-af aresample=resampler=soxr:precision=32:dither_method=triangular -sample_fmt s16"
fd -e flac -d1 -x ffmpeg -hide_banner -i {} -c:v copy -c:a flac -compression_level 12 $args $@ out/{}
compare
fd -e flac -d1 -x ffmpeg -hide_banner -i {} -c:v copy -c:a flac -compression_level 12 "$args" "$@" out/{}
cd out || exit 1
comparedir ..
cd .. || exit 1
fd -e flac -d1 -x flac -f8 {} -o out/{}
compare
cd out || exit 1
comparedir ..
cd .. || exit 1
rm -r out

View File

@ -9,7 +9,7 @@ gui="caja gimp keepassxc kitty nicotine-plus qutebrowser syncthing zathura-mupdf
med="audaci{ty,ous{,-plugins}} avidemux mkvtoolnix mpv opus-tools spek yt-dlp"
ric="ant-dracula-gtk-theme autojump font-ubuntu-ttf rofi starship stow"
tui="advancecomp aria2 fd fish fzf innoextract jpegoptim ncdu ripgrep tig"
sys="bleachbit corectrl ifuse linux-tools-cpupower p7zip tlp usbmuxd upx"
sys="bleachbit corectrl ifuse linux-tools-cpupower p7zip privoxy tlp usbmuxd upx"
se up; se it -c system.devel $dev $gui $med $ric $sys $tui
stow --no-folding -d ~/.dotfiles -t ~/.config .

View File

@ -18,6 +18,8 @@ use-filedir-conf
sub-font = Funimitation
sub-font-size = 36
ytdl-raw-options=sub-lang=en
profile = gpu-hq
scale = spline36
cscale = spline36

View File

@ -1,6 +1,5 @@
a=c.aliases
a['re'] = 'restart'
a['mpv'] = 'spawn -mdv mpv --ytdl-raw-options=sub-lang=en'
a['css-reload'] = 'set content.user_stylesheets user.css'
a['scss-reload'] = 'spawn -u /bin/bash -c "sassc $QUTE_CONFIG_DIR/user.{s,}css"'
a['remove-sticky'] = 'jseval -q document.querySelectorAll("*").forEach(e=>{["sticky","fixed"].includes(getComputedStyle(e).position)&&e.parentNode.removeChild(e)})'

View File

@ -6,23 +6,23 @@ bind = {
'<Ctrl-Shift-a>': 'ao3-first',
'<Ctrl-Shift-x>': 'ao3-latest',
'<Alt+f>' : 'config-cycle hints.chars qwerasdf asdfghjkl',
',': 'hint links run mpv {hint-url}',
',': 'hint links run spawn -mdv mpv {hint-url}',
';a': 'hint links run ' + kitdl + ' dl {hint-url}"',
';v': 'hint links run ' + kitdl + ' ydl {hint-url}"',
'aa': kitdl + ' dl {url}"',
'av': kitdl + ' ydl {url}"',
'e': 'config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload',
'E': 'config-cycle -p content.javascript.enabled ;; reload',
'm': 'mpv {url}',
'm': 'spawn -mdv mpv {url}',
's1': 'download-open',
'sa': 'open -t archive.is/submit/?url={url}',
'sc': 'toggle-dark',
'sd': "spawn fish -c 'dl; open (ls | rofi -dmenu -b -i || exit 0)'",
'sd': "spawn fish -c 'dl; open (ls -a | rofi -dmenu -b -i || exit 0)'",
'sg': 'debug-dump-page ~/Downloads/dump.html',
'sm': 'monolith-save ~/Downloads/dump.html"',
'sq': 'spawn -u qr',
'sr': 'remove-sticky',
'st': 'config-cycle -p content.proxy socks://localhost:9050/ system',
'st': 'config-cycle -p content.proxy socks://localhost:9050 http://localhost:8118',
'T' : 'tab-next',
'td': 'config-unset -u {url:host} content.headers.user_agent',
}

View File

@ -8,8 +8,10 @@ config.source('redirects.py')
c.url.start_pages = c.url.default_page = 'megafocs.herokuapp.com'
config.set('content.javascript.enabled', True, c.url.start_pages)
c.url.searchengines['DEFAULT'] = 'farside.link/searxng/search?q={}'
c.url.searchengines['y'] = 'farside.link/invidious/search?q={}'
c.url.searchengines['DEFAULT'] = 'kagi.com/search?q={}'
c.url.searchengines['t'] = 'ao3.org/tags/{}'
c.url.searchengines['!'] = 'duckduckgo.com/?q=!{}'
c.tabs.show = 'multiple'
c.confirm_quit = ['downloads']
@ -18,8 +20,10 @@ c.content.fullscreen.window = True
c.content.user_stylesheets = 'user.css'
c.content.cookies.accept = 'no-3rdparty'
c.colors.webpage.darkmode.enabled = True
c.content.proxy = 'http://localhost:8118'
c.colors.webpage.preferred_color_scheme = 'dark'
c.colors.webpage.darkmode.policy.images = 'never'
c.completion.open_categories = ["bookmarks","history"]
import socket
if socket.gethostname() == 'wheatley':

View File

@ -1,4 +1,3 @@
dial covid19.rpi.edu/dailycheckin
discord canary.discord.com/app
hn news.ycombinator.com
lms lms.rpi.edu/ultra/stream