mirror of
https://github.com/Phantop/dotfiles
synced 2025-07-23 13:00:51 +00:00
Compare commits
3 commits
1698643bac
...
b0b21f665b
Author | SHA1 | Date | |
---|---|---|---|
|
b0b21f665b | ||
|
d22c9c9bbb | ||
|
ee735ad299 |
13
archpkgs
13
archpkgs
|
@ -1,5 +1,4 @@
|
|||
advancecomp
|
||||
anime4k
|
||||
apparmor
|
||||
arch-install-scripts
|
||||
ares-emu-avx-git
|
||||
|
@ -24,21 +23,24 @@ chaotic-keyring
|
|||
chaotic-mirrorlist
|
||||
clang
|
||||
cmake
|
||||
composer
|
||||
cpupower
|
||||
csvlens
|
||||
dart-sass
|
||||
devkitpro-keyring
|
||||
discord
|
||||
doas-sudo-shim
|
||||
dolphin-emu
|
||||
dolphin-emu-tool
|
||||
dracula-gtk-theme-git
|
||||
duckstation-avx-git
|
||||
duckstation
|
||||
elvish
|
||||
erofs-utils
|
||||
expac
|
||||
fd
|
||||
firejail
|
||||
fish
|
||||
flatpak
|
||||
fq
|
||||
fuse-overlayfs
|
||||
fwupd
|
||||
|
@ -49,6 +51,7 @@ gamescope
|
|||
gdb
|
||||
gifsicle
|
||||
git
|
||||
git-delta
|
||||
git-filter-repo
|
||||
git-lfs
|
||||
github-cli
|
||||
|
@ -56,7 +59,9 @@ gitui
|
|||
gnome-disk-utility
|
||||
gnome-keyring
|
||||
gnome-power-manager
|
||||
grex
|
||||
gron
|
||||
gvfs-mtp
|
||||
hblock
|
||||
httrack
|
||||
hurl
|
||||
|
@ -117,7 +122,10 @@ nicotine+
|
|||
ninja
|
||||
nnn
|
||||
noto-fonts-emoji
|
||||
npm
|
||||
nss-mdns
|
||||
nvme-cli
|
||||
obs-studio
|
||||
opendoas
|
||||
opus-tools
|
||||
oxipng
|
||||
|
@ -128,7 +136,6 @@ pcmanfm-gtk3
|
|||
pdfjs
|
||||
perl-parallel-forkmanager
|
||||
perl-rename
|
||||
php
|
||||
pipewire
|
||||
pngquant
|
||||
poppler
|
||||
|
|
|
@ -34,3 +34,5 @@ Windows Registry Editor Version 5.00
|
|||
"Window"="40 42 54"
|
||||
"WindowFrame"="0 0 0"
|
||||
"WindowText"="245 247 250"
|
||||
[HKEY_CURRENT_USER\Control Panel\Desktop]
|
||||
"LogPixels"=dword:00000078
|
||||
|
|
|
@ -2,5 +2,5 @@ function ytflux
|
|||
set cat (cat ~/.config/miniflux)/categories/3
|
||||
set entries (eval curl $cat/entries?status=unread | jq -r .entries[].url)
|
||||
eval curl -X PUT $cat/mark-all-as-read
|
||||
parallel -u "yt-dlp $argv (trurl -s host=youtube.com {})" ::: $entries
|
||||
parallel -u "yt-dlp $argv {}" ::: $entries
|
||||
end
|
||||
|
|
|
@ -18,11 +18,6 @@ basic = {
|
|||
'www.twitch.tv' : 'twineo.exozy.me',
|
||||
}
|
||||
farside = {
|
||||
'music.youtube.com': 'invidious',
|
||||
'www.youtube.com': 'invidious',
|
||||
'youtu.be': 'invidious',
|
||||
'youtube.com': 'invidious',
|
||||
|
||||
'old.reddit.com': 'redlib',
|
||||
'reddit.com': 'redlib',
|
||||
'www.reddit.com': 'redlib',
|
||||
|
@ -58,6 +53,17 @@ subs = {
|
|||
'tumblr.com' : tumblr,
|
||||
}
|
||||
|
||||
def youtube(info: interceptor.Request, url: QUrl):
|
||||
url = url.toString()
|
||||
nurl = url.replace("watch?v=", "embed/")
|
||||
|
||||
if nurl != url:
|
||||
info.redirect(QUrl(nurl))
|
||||
|
||||
custom = {
|
||||
'www.youtube.com' : youtube,
|
||||
}
|
||||
|
||||
def rewrite(info: interceptor.Request):
|
||||
url = info.request_url
|
||||
host = url.host()
|
||||
|
@ -66,6 +72,7 @@ def rewrite(info: interceptor.Request):
|
|||
bredir = basic.get(host)
|
||||
fredir = farside.get(host)
|
||||
sredir = subs.get(base)
|
||||
credir = custom.get(host)
|
||||
|
||||
if bredir is not None:
|
||||
url.setHost(bredir)
|
||||
|
@ -78,5 +85,7 @@ def rewrite(info: interceptor.Request):
|
|||
sub = host.split('.')[0]
|
||||
sredir(url, sub)
|
||||
info.redirect(url)
|
||||
elif credir is not None:
|
||||
credir(info, url)
|
||||
|
||||
interceptor.register(rewrite)
|
||||
|
|
Loading…
Reference in a new issue