mirror of
https://github.com/Phantop/dotfiles
synced 2025-11-26 14:16:13 +00:00
fish: alpine, awall, drivedl, xcompress, zipmount
also qute hiding invid stuff and morty
This commit is contained in:
parent
9cd200b427
commit
47adeaffeb
|
|
@ -17,6 +17,7 @@ a clip 'xclip -sel clip'
|
||||||
a cpugov 's cpupower frequency-set -g performance'
|
a cpugov 's cpupower frequency-set -g performance'
|
||||||
a dirdl 'wget -r -k -p --no-parent --no-clobber -e robots=off -R "index.html*"'
|
a dirdl 'wget -r -k -p --no-parent --no-clobber -e robots=off -R "index.html*"'
|
||||||
a dl 'not test "$argv" && cd ~/Downloads || aria2c -c -{j,s,x}16'
|
a dl 'not test "$argv" && cd ~/Downloads || aria2c -c -{j,s,x}16'
|
||||||
|
a drivedl 'dl https://docs.google.com/uc?export=download&id=(echo $argv | cut -d/ -f6)&confirm=t'
|
||||||
a dot 'cd ~/.dotfiles'
|
a dot 'cd ~/.dotfiles'
|
||||||
a ff 'fd -HILi -Edosdevices -E.git'
|
a ff 'fd -HILi -Edosdevices -E.git'
|
||||||
a g git
|
a g git
|
||||||
|
|
@ -68,6 +69,8 @@ a foldwarf 'appdwarf -f $argv .;:'
|
||||||
a redwarf 'mkdwarfs -o redwarf.dwarfs --recompress -i'
|
a redwarf 'mkdwarfs -o redwarf.dwarfs --recompress -i'
|
||||||
a squash 'mksquashfs . $PWD.squashfs -comp zstd -b 1M -Xcompression-level 22'
|
a squash 'mksquashfs . $PWD.squashfs -comp zstd -b 1M -Xcompression-level 22'
|
||||||
a undwarfs 'mkdir dwarfs-root; dwarfsextract -o dwarfs-root -i'
|
a undwarfs 'mkdir dwarfs-root; dwarfsextract -o dwarfs-root -i'
|
||||||
|
a xcompress 'fxz -T0 -9 -k'
|
||||||
|
a zipmount 'fuse-zip -f $argv (mktemp -d | tee /dev/tty /dev/stderr 2>| clip);:'
|
||||||
|
|
||||||
for i in (cat ~/.config/qutebrowser/quickmarks | cut -d ' ' -f1)
|
for i in (cat ~/.config/qutebrowser/quickmarks | cut -d ' ' -f1)
|
||||||
a $i "qutebrowser-profile --load $i \":open $i\""
|
a $i "qutebrowser-profile --load $i \":open $i\""
|
||||||
|
|
@ -78,8 +81,8 @@ for i in deemix nsz scdl soundscrape spleeter
|
||||||
end
|
end
|
||||||
|
|
||||||
function alpine
|
function alpine
|
||||||
set url https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64
|
set url https://dl-cdn.alpinelinux.org/alpine/edge/releases/x86_64/
|
||||||
set file (curl $url/latest-releases.yaml | grep file: | head -n1 | cut -d\ -f4)
|
set file (curl $url | grep s-2 | tac | sed -n 3p | cut -d\" -f2)
|
||||||
mkdir alpine; curl $url/$file | tar xf - -Calpine
|
mkdir alpine; curl $url/$file | tar xf - -Calpine
|
||||||
cp /etc/resolv.conf alpine/etc
|
cp /etc/resolv.conf alpine/etc
|
||||||
proot -r alpine
|
proot -r alpine
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "$#" -ge 1 ]; then
|
[ "$#" -ge 1 ] && echo ~/Pictures/Awall/"$1"* > ~/Pictures/.wallp
|
||||||
rm ~/Pictures/.wallp
|
|
||||||
echo ~/Pictures/Awall/"$1"* > ~/Pictures/.wallp
|
|
||||||
fi
|
|
||||||
pkill -f "mpv.*wallpaper"
|
pkill -f "mpv.*wallpaper"
|
||||||
nohup xwinwrap -ni -fdt -fs -- mpv -wid WID "$(cat ~/Pictures/.wallp)" --profile=wallpaper >/dev/null 2>&1 &
|
nohup xwinwrap -ni -fdt -fs -- mpv -wid WID "$(cat ~/Pictures/.wallp)" --profile=wallpaper >/dev/null 2>&1 &
|
||||||
if [ "$#" -ge 1 ]; then
|
if [ "$#" -ge 1 ]; then
|
||||||
ffmpeg -i "$(cat ~/Pictures/.wallp)" -vframes 1 -y ~/Pictures/Awall/wall.png
|
ffmpeg -i "$(cat ~/Pictures/.wallp)" -vframes 1 -y ~/Pictures/Awall/wall.png
|
||||||
convert ~/Pictures/Awall/wall.png -interpolate Integer -filter point -resize 1920x1080 -gravity center -background black -extent 1920x1080 ~/Pictures/Awall/wall.png
|
mogrify -interpolate Integer -filter point -resize 1920x1080 -gravity center -background black -extent 1920x1080 ~/Pictures/Awall/wall.png
|
||||||
gsettings set org.gnome.desktop.background picture-uri file://"$HOME"/Pictures/Awall/wall.png
|
gsettings set org.gnome.desktop.background picture-uri file://"$HOME"/Pictures/Awall/wall.png
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
cook=$(mktemp)
|
|
||||||
link="https://docs.google.com/uc?export=download&id=$(echo "$1"| cut -d/ -f6)"
|
|
||||||
code=$(wget --save-cookies "$cook" "$link" -O- | grep -Eo "confirm=[0-9A-Za-z_]+")
|
|
||||||
aria2c --load-cookies "$cook" "$link&$code" -c -x16 -s16
|
|
||||||
|
|
@ -16,8 +16,8 @@ bind = {
|
||||||
'<Ctrl-q>': 'close',
|
'<Ctrl-q>': 'close',
|
||||||
'<Ctrl-r>': 'spawn -u readability',
|
'<Ctrl-r>': 'spawn -u readability',
|
||||||
'<Ctrl-w>': 'tab-close',
|
'<Ctrl-w>': 'tab-close',
|
||||||
'<Ctrl-Shift-a>': 'ao3-first',
|
'<Ctrl-Shift-a>': 'ao3-latest',
|
||||||
'<Ctrl-Shift-x>': 'ao3-latest',
|
'<Ctrl-Shift-x>': 'ao3-first',
|
||||||
'<Alt+f>' : 'config-cycle hints.chars qwerasdf asdfghjkl',
|
'<Alt+f>' : 'config-cycle hints.chars qwerasdf asdfghjkl',
|
||||||
',': 'hint links run spawn -mdv 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}"',
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ 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['t'] = 'ao3.org/tags/{}'
|
c.url.searchengines['t'] = 'ao3.org/tags/{}'
|
||||||
c.url.searchengines['!'] = 'duckduckgo.com/?q=!{}'
|
c.url.searchengines['!'] = 'duckduckgo.com/?q=!{}'
|
||||||
|
c.url.searchengines['m'] = 'morty.ononoki.org/?mortyurl={}'
|
||||||
c.url.start_pages = c.url.default_page = 'megafocs.herokuapp.com'
|
c.url.start_pages = c.url.default_page = 'megafocs.herokuapp.com'
|
||||||
|
|
||||||
config.source('adblock.py')
|
config.source('adblock.py')
|
||||||
|
|
|
||||||
|
|
@ -42,14 +42,14 @@ ul.work > li.download {
|
||||||
}
|
}
|
||||||
|
|
||||||
$class: ad-frame-container, ad-panel, ad-slot, adsbygoogle,
|
$class: ad-frame-container, ad-panel, ad-slot, adsbygoogle,
|
||||||
adbox, adunit, adunit-wrapper, b_ad, leaderboard;
|
adbox, adunit, adunit-wrapper, b_ad, leaderboard, pure-u-lg-1-5;
|
||||||
@each $i in $class {.#{$i} {display:none}}
|
@each $i in $class {.#{$i} {display:none}}
|
||||||
|
|
||||||
$div: 'class*=-ad-container', 'class*=ad-wrapper', 'id*=_ad_native',
|
$div: 'class*=-ad-container', 'class*=ad-wrapper', 'id*=_ad_native',
|
||||||
'id^=div-gpt-ad', 'id^=google_ads_', 'id^=netboard_', 'id^=skyscraper';
|
'id^=div-gpt-ad', 'id^=google_ads_', 'id^=netboard_', 'id^=skyscraper';
|
||||||
@each $i in $div {div[#{$i}] {display:none}}
|
@each $i in $div {div[#{$i}] {display:none}}
|
||||||
|
|
||||||
$id: ads, leaderboard, player-ads, rc-row-container;
|
$id: ads, comments, leaderboard, player-ads, rc-row-container;
|
||||||
@each $i in $id {##{$i} {display:none}}
|
@each $i in $id {##{$i} {display:none}}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue