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