mirror of
https://github.com/Phantop/dotfiles
synced 2025-12-02 00:58:37 +00:00
bin: comparedir, qute: searx, privoxy, ao3 tags
This commit is contained in:
parent
1f3a6715bf
commit
6e1e9e272c
9
bin/comparedir
Executable file
9
bin/comparedir
Executable 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
|
||||||
|
|
||||||
21
bin/optiflac
21
bin/optiflac
|
|
@ -1,22 +1,15 @@
|
||||||
#!/bin/sh
|
#!/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
|
mkdir out
|
||||||
|
|
||||||
args="-af aresample=resampler=soxr:precision=32:dither_method=triangular -sample_fmt s16"
|
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/{}
|
fd -e flac -d1 -x ffmpeg -hide_banner -i {} -c:v copy -c:a flac -compression_level 12 "$args" "$@" out/{}
|
||||||
compare
|
cd out || exit 1
|
||||||
|
comparedir ..
|
||||||
|
cd .. || exit 1
|
||||||
|
|
||||||
fd -e flac -d1 -x flac -f8 {} -o out/{}
|
fd -e flac -d1 -x flac -f8 {} -o out/{}
|
||||||
compare
|
cd out || exit 1
|
||||||
|
comparedir ..
|
||||||
|
cd .. || exit 1
|
||||||
|
|
||||||
rm -r out
|
rm -r out
|
||||||
|
|
|
||||||
|
|
@ -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"
|
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"
|
ric="ant-dracula-gtk-theme autojump font-ubuntu-ttf rofi starship stow"
|
||||||
tui="advancecomp aria2 fd fish fzf innoextract jpegoptim ncdu ripgrep tig"
|
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
|
se up; se it -c system.devel $dev $gui $med $ric $sys $tui
|
||||||
|
|
||||||
stow --no-folding -d ~/.dotfiles -t ~/.config .
|
stow --no-folding -d ~/.dotfiles -t ~/.config .
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ use-filedir-conf
|
||||||
sub-font = Funimitation
|
sub-font = Funimitation
|
||||||
sub-font-size = 36
|
sub-font-size = 36
|
||||||
|
|
||||||
|
ytdl-raw-options=sub-lang=en
|
||||||
|
|
||||||
profile = gpu-hq
|
profile = gpu-hq
|
||||||
scale = spline36
|
scale = spline36
|
||||||
cscale = spline36
|
cscale = spline36
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
a=c.aliases
|
a=c.aliases
|
||||||
a['re'] = 'restart'
|
a['re'] = 'restart'
|
||||||
a['mpv'] = 'spawn -mdv mpv --ytdl-raw-options=sub-lang=en'
|
|
||||||
a['css-reload'] = 'set content.user_stylesheets user.css'
|
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['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)})'
|
a['remove-sticky'] = 'jseval -q document.querySelectorAll("*").forEach(e=>{["sticky","fixed"].includes(getComputedStyle(e).position)&&e.parentNode.removeChild(e)})'
|
||||||
|
|
|
||||||
|
|
@ -6,23 +6,23 @@ bind = {
|
||||||
'<Ctrl-Shift-a>': 'ao3-first',
|
'<Ctrl-Shift-a>': 'ao3-first',
|
||||||
'<Ctrl-Shift-x>': 'ao3-latest',
|
'<Ctrl-Shift-x>': 'ao3-latest',
|
||||||
'<Alt+f>' : 'config-cycle hints.chars qwerasdf asdfghjkl',
|
'<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}"',
|
';a': 'hint links run ' + kitdl + ' dl {hint-url}"',
|
||||||
';v': 'hint links run ' + kitdl + ' ydl {hint-url}"',
|
';v': 'hint links run ' + kitdl + ' ydl {hint-url}"',
|
||||||
'aa': kitdl + ' dl {url}"',
|
'aa': kitdl + ' dl {url}"',
|
||||||
'av': kitdl + ' ydl {url}"',
|
'av': kitdl + ' ydl {url}"',
|
||||||
'e': 'config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload',
|
'e': 'config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload',
|
||||||
'E': 'config-cycle -p content.javascript.enabled ;; reload',
|
'E': 'config-cycle -p content.javascript.enabled ;; reload',
|
||||||
'm': 'mpv {url}',
|
'm': 'spawn -mdv mpv {url}',
|
||||||
's1': 'download-open',
|
's1': 'download-open',
|
||||||
'sa': 'open -t archive.is/submit/?url={url}',
|
'sa': 'open -t archive.is/submit/?url={url}',
|
||||||
'sc': 'toggle-dark',
|
'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',
|
'sg': 'debug-dump-page ~/Downloads/dump.html',
|
||||||
'sm': 'monolith-save ~/Downloads/dump.html"',
|
'sm': 'monolith-save ~/Downloads/dump.html"',
|
||||||
'sq': 'spawn -u qr',
|
'sq': 'spawn -u qr',
|
||||||
'sr': 'remove-sticky',
|
'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',
|
'T' : 'tab-next',
|
||||||
'td': 'config-unset -u {url:host} content.headers.user_agent',
|
'td': 'config-unset -u {url:host} content.headers.user_agent',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,10 @@ config.source('redirects.py')
|
||||||
|
|
||||||
c.url.start_pages = c.url.default_page = 'megafocs.herokuapp.com'
|
c.url.start_pages = c.url.default_page = 'megafocs.herokuapp.com'
|
||||||
config.set('content.javascript.enabled', True, c.url.start_pages)
|
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['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.tabs.show = 'multiple'
|
||||||
c.confirm_quit = ['downloads']
|
c.confirm_quit = ['downloads']
|
||||||
|
|
@ -18,8 +20,10 @@ c.content.fullscreen.window = True
|
||||||
c.content.user_stylesheets = 'user.css'
|
c.content.user_stylesheets = 'user.css'
|
||||||
c.content.cookies.accept = 'no-3rdparty'
|
c.content.cookies.accept = 'no-3rdparty'
|
||||||
c.colors.webpage.darkmode.enabled = True
|
c.colors.webpage.darkmode.enabled = True
|
||||||
|
c.content.proxy = 'http://localhost:8118'
|
||||||
c.colors.webpage.preferred_color_scheme = 'dark'
|
c.colors.webpage.preferred_color_scheme = 'dark'
|
||||||
c.colors.webpage.darkmode.policy.images = 'never'
|
c.colors.webpage.darkmode.policy.images = 'never'
|
||||||
|
c.completion.open_categories = ["bookmarks","history"]
|
||||||
|
|
||||||
import socket
|
import socket
|
||||||
if socket.gethostname() == 'wheatley':
|
if socket.gethostname() == 'wheatley':
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
dial covid19.rpi.edu/dailycheckin
|
|
||||||
discord canary.discord.com/app
|
discord canary.discord.com/app
|
||||||
hn news.ycombinator.com
|
hn news.ycombinator.com
|
||||||
lms lms.rpi.edu/ultra/stream
|
lms lms.rpi.edu/ultra/stream
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue