mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-22 06:42:46 +00:00
qute: more redirects, dwarfs: tidy, mpv: yt-dlp
This commit is contained in:
parent
adc72d9417
commit
0363be74bd
|
@ -8,6 +8,7 @@ volume-max = 1000
|
||||||
cache = yes
|
cache = yes
|
||||||
demuxer-max-bytes = 2147483647
|
demuxer-max-bytes = 2147483647
|
||||||
demuxer-max-back-bytes = 2147483647
|
demuxer-max-back-bytes = 2147483647
|
||||||
|
script-opts=ytdl_hook-ytdl_path=yt-dlp
|
||||||
|
|
||||||
audio-file-auto = exact
|
audio-file-auto = exact
|
||||||
audio-file-paths = ../Custom Tracks:./Custom Tracks:../Audio:./Audio
|
audio-file-paths = ../Custom Tracks:./Custom Tracks:../Audio:./Audio
|
||||||
|
|
|
@ -62,7 +62,6 @@ if socket.gethostname() == "wheatley":
|
||||||
c.url.start_pages = "covid19.rpi.edu/dailycheckin"
|
c.url.start_pages = "covid19.rpi.edu/dailycheckin"
|
||||||
c.url.searchengines['y'] = "vid.puffyan.us/search?q={}"
|
c.url.searchengines['y'] = "vid.puffyan.us/search?q={}"
|
||||||
c.fonts.default_size = "11pt"
|
c.fonts.default_size = "11pt"
|
||||||
c.aliases['mpv'] = mpv + ' --ytdl-format=bestvideo[vcodec^=avc1]+bestaudio'
|
|
||||||
|
|
||||||
#import dracula.draw
|
#import dracula.draw
|
||||||
#dracula.draw.blood(c, {'spacing': {'vertical': 1,'horizontal': 0}})
|
#dracula.draw.blood(c, {'spacing': {'vertical': 1,'horizontal': 0}})
|
||||||
|
|
|
@ -2,6 +2,6 @@ dial https://covid19.rpi.edu/dailycheckin
|
||||||
discord https://canary.discord.com/app
|
discord https://canary.discord.com/app
|
||||||
drop https://drop.lol
|
drop https://drop.lol
|
||||||
hn https://news.ycombinator.com
|
hn https://news.ycombinator.com
|
||||||
lms https://lms.rpi.edu/ultra/stream
|
lms https://lms.rpi.edu
|
||||||
submitty https://submitty.cs.rpi.edu/courses/f21/csci1200/polls
|
submitty https://submitty.cs.rpi.edu/courses/f21/csci1200/polls
|
||||||
tuta https://mail.tutanota.com
|
tuta https://mail.tutanota.com
|
||||||
|
|
|
@ -13,29 +13,31 @@ s = 'setHost'
|
||||||
i = interceptor
|
i = interceptor
|
||||||
|
|
||||||
MAP = {
|
MAP = {
|
||||||
"reddit.com": o(s, reddit),
|
"reddit.com": o(s, reddit),
|
||||||
"www.reddit.com": o(s, reddit),
|
"www.reddit.com": o(s, reddit),
|
||||||
"old.reddit.com": o(s, reddit),
|
"old.reddit.com": o(s, reddit),
|
||||||
|
|
||||||
"twitter.com": o(s, nitter),
|
"twitter.com": o(s, nitter),
|
||||||
"api.twitter.com": o(s, nitter),
|
"api.twitter.com": o(s, nitter),
|
||||||
"mobile.twitter.com": o(s, nitter),
|
"mobile.twitter.com": o(s, nitter),
|
||||||
"platform.twitter.com": o(s, nitter),
|
"platform.twitter.com": o(s, nitter),
|
||||||
"www.platform.twitter.com": o(s, nitter),
|
"www.platform.twitter.com": o(s, nitter),
|
||||||
|
|
||||||
"youtu.be": o(s, invid),
|
"youtu.be": o(s, invid),
|
||||||
"youtube.com": o(s, invid),
|
"youtube.com": o(s, invid),
|
||||||
"www.youtube.com": o(s, invid),
|
"www.youtube.com": o(s, invid),
|
||||||
|
|
||||||
"www.instagram.com": o(s, 'bibliogram.art'),
|
"www.instagram.com": o(s, 'bibliogram.art'),
|
||||||
"www.amazon.com": o(s, 'smile.amazon.com'),
|
"www.amazon.com": o(s, 'smile.amazon.com'),
|
||||||
}
|
"imgur.com" : o(s, 'imgin.voidnet.tech'),
|
||||||
|
"medium.com" : o(s, 'scribe.rip')
|
||||||
|
}
|
||||||
def f(info: i.Request):
|
def f(info: i.Request):
|
||||||
if (info.resource_type != i.ResourceType.main_frame or
|
if (info.resource_type != i.ResourceType.main_frame or
|
||||||
info.request_url.scheme() in {"data", "blob"}):
|
info.request_url.scheme() in {"data", "blob"}):
|
||||||
return
|
return
|
||||||
url = info.request_url
|
url = info.request_url
|
||||||
redir = MAP.get(url.host())
|
redir = MAP.get(url.host())
|
||||||
if redir is not None and redir(url) is not False:
|
if redir is not None and redir(url) is not False:
|
||||||
info.redirect(url)
|
info.redirect(url)
|
||||||
i.register(f)
|
i.register(f)
|
||||||
|
|
|
@ -41,7 +41,7 @@ a up 'se up --y'
|
||||||
a v vi
|
a v vi
|
||||||
a vi nvim
|
a vi nvim
|
||||||
a wallp 'gsettings set org.gnome.desktop.background picture-uri file://(realpath $argv);:'
|
a wallp 'gsettings set org.gnome.desktop.background picture-uri file://(realpath $argv);:'
|
||||||
a wm 'startx (which $argv[1]; argv[2..-1])'
|
a wm 'startx (which $argv[1]) $argv[2..-1]'
|
||||||
|
|
||||||
a ao3 'egrep works/[0-9]+ $argv -o | uniq | tr -d a-z | parallel aria2c "https://ao3.org/downloads{}/\*.epub" -d ao3; rm'
|
a ao3 'egrep works/[0-9]+ $argv -o | uniq | tr -d a-z | parallel aria2c "https://ao3.org/downloads{}/\*.epub" -d ao3; rm'
|
||||||
a invid 'tmux new -s 0 -d "docker-compose -f ~/.config/invid.yml up --build"'
|
a invid 'tmux new -s 0 -d "docker-compose -f ~/.config/invid.yml up --build"'
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
DIR=~/dwarf/$(basename "$@" .dwarfs)$RANDOM
|
DIR=~/dwarf/$(basename "$@" .dwarfs)$RANDOM
|
||||||
mkdir -p "$DIR"
|
mkdir -p "$DIR"
|
||||||
echo "$DIR"
|
echo "$DIR"
|
||||||
dwarfs -o offset=auto -f "$@" "$DIR" 2> /dev/null
|
dwarfs -o offset=auto -o tidy_strategy=swap -f "$@" "$DIR" 2> /dev/null
|
||||||
rmdir "$DIR" ~/dwarf 2> /dev/null
|
rmdir "$DIR" ~/dwarf 2> /dev/null
|
||||||
|
|
|
@ -5,7 +5,7 @@ echo D=\"$1\" >> $H
|
||||||
cat >> $H <<'EOF'
|
cat >> $H <<'EOF'
|
||||||
if [ ! -d "$D" ]; then
|
if [ ! -d "$D" ]; then
|
||||||
mkdir "$D"
|
mkdir "$D"
|
||||||
dwarfs -o offset=auto "$0" "$D"
|
dwarfs -o offset=auto -o tidy_strategy=swap "$0" "$D"
|
||||||
else
|
else
|
||||||
fusermount -u "$D"
|
fusermount -u "$D"
|
||||||
rmdir "$D"
|
rmdir "$D"
|
||||||
|
@ -14,6 +14,6 @@ exit
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
shift
|
shift
|
||||||
mkdwarfs -i . -o "$PWD.sh" --header $H $@
|
mkdwarfs -i . -o "$PWD.sh" -B3 --header $H $@
|
||||||
chmod +x "$PWD.sh"
|
chmod +x "$PWD.sh"
|
||||||
rm $H
|
rm $H
|
||||||
|
|
|
@ -4,16 +4,16 @@ alias s=sudo se="sudo eopkg -y" g=git
|
||||||
gnome="$(echo eog file-roller gnome-{photos,mpv,terminal} nautilus rhythmbox)"
|
gnome="$(echo eog file-roller gnome-{photos,mpv,terminal} nautilus rhythmbox)"
|
||||||
audio="audacious audacious-plugins audacity opus-tools quodlibet spek"
|
audio="audacious audacious-plugins audacity opus-tools quodlibet spek"
|
||||||
dev="ccache docker-compose git-extras llvm-clang neovim parallel solbuild tig upx"
|
dev="ccache docker-compose git-extras llvm-clang neovim parallel solbuild tig upx"
|
||||||
gui="bleachbit caja gmic-gimp engrampa keepassxc kitty lutris vorta"
|
gui="abiword caja gmic-gimp engrampa keepassxc kitty lutris vorta"
|
||||||
media="avidemux gaupol jpegoptim mpv playerctl usbmuxd viewnior zathura-poppler"
|
media="avidemux gaupol jpegoptim mpv playerctl usbmuxd viewnior zathura-poppler"
|
||||||
rice="ant-dracula-gtk-theme font-ubuntu-ttf rofi starship stow"
|
rice="ant-dracula-gtk-theme font-ubuntu-ttf rofi starship stow"
|
||||||
term="advancecomp autojump fd fish fzf innoextract most ncdu p7zip ranger ripgrep tmux"
|
term="advancecomp autojump fd fish fzf innoextract most ncdu p7zip ranger ripgrep tmux"
|
||||||
sys="corectrl ifuse linux-tools-cpupower python-wheel rsync tlp"
|
sys="bleachbit corectrl ifuse linux-tools-cpupower python-wheel rsync tlp"
|
||||||
web="arcanist aria2 nicotine-plus qutebrowser openssh-server rclone subliminal syncthing-gtk"
|
web="arcanist aria2 nicotine-plus qutebrowser openssh-server rclone subliminal syncthing-gtk"
|
||||||
|
|
||||||
se up
|
se up
|
||||||
se it -c system.devel $audio $dev $gui $media $rice $sys $term $web
|
se it -c system.devel $audio $dev $gui $media $rice $sys $term $web
|
||||||
se rm $gnome firefox hexchat onboard thunderbird
|
se rm $gnome firefox hexchat libreoffice-common onboard thunderbird
|
||||||
se rm --ignore-dependency plata-theme tracker
|
se rm --ignore-dependency plata-theme tracker
|
||||||
|
|
||||||
echo source ~/.config/bashrc > ~/.bashrc
|
echo source ~/.config/bashrc > ~/.bashrc
|
||||||
|
|
Loading…
Reference in a new issue