mirror of
https://github.com/Phantop/dotfiles
synced 2025-05-22 23:01:12 +00:00
general shell usage improvements
This commit is contained in:
parent
b62c7810e8
commit
cc67eef481
2
archpkgs
2
archpkgs
|
@ -77,6 +77,8 @@ krita
|
||||||
labwc
|
labwc
|
||||||
lagrange
|
lagrange
|
||||||
libheif
|
libheif
|
||||||
|
libimobiledevice
|
||||||
|
libimobiledevice-glue
|
||||||
libplist
|
libplist
|
||||||
libpulse
|
libpulse
|
||||||
libusbmuxd
|
libusbmuxd
|
||||||
|
|
|
@ -31,6 +31,7 @@ a gittop 'cd (git root)'
|
||||||
a giveme 's chown $USER'
|
a giveme 's chown $USER'
|
||||||
a gsopti 'fd -e pdf -x gs -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile={}1 {} \; -x mv {}1 {}'
|
a gsopti 'fd -e pdf -x gs -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile={}1 {} \; -x mv {}1 {}'
|
||||||
a hardinfo 'inxi -SPARM -GCDN -v1 -xGCRS -Fxz'
|
a hardinfo 'inxi -SPARM -GCDN -v1 -xGCRS -Fxz'
|
||||||
|
a htmldecode 'python3 -c "import html, sys; print(html.unescape(sys.stdin.read()))"'
|
||||||
a imgsum 'printf "$argv: " && identify -format "%#\n"'
|
a imgsum 'printf "$argv: " && identify -format "%#\n"'
|
||||||
a kittab 'kitty @ launch --type=tab --cwd $PWD'
|
a kittab 'kitty @ launch --type=tab --cwd $PWD'
|
||||||
a l ls
|
a l ls
|
||||||
|
@ -56,11 +57,13 @@ a ssh 'kitty +kitten ssh'
|
||||||
a sus 'systemctl suspend'
|
a sus 'systemctl suspend'
|
||||||
a tar bsdtar
|
a tar bsdtar
|
||||||
a tcsv 'curl https://torrents-csv.com/service/search?q=(echo $argv | tr " " +) | jless;:'
|
a tcsv 'curl https://torrents-csv.com/service/search?q=(echo $argv | tr " " +) | jless;:'
|
||||||
|
a up 's pacman -Syu'
|
||||||
a urldecode 'python3 -c "import sys; from urllib.parse import unquote; print(unquote(sys.stdin.read()))"'
|
a urldecode 'python3 -c "import sys; from urllib.parse import unquote; print(unquote(sys.stdin.read()))"'
|
||||||
a v vi
|
a v vi
|
||||||
a venv 'python3 -m venv venv && source venv/bin/activate.fish && pip3 install -r requirements.txt'
|
a venv 'python3 -m venv venv && source venv/bin/activate.fish && pip3 install -r requirements.txt'
|
||||||
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 ya 'yay -a'
|
||||||
a ydl 'yt-dlp'
|
a ydl 'yt-dlp'
|
||||||
|
|
||||||
a 7zstd '7z a -m0=zstd -mx22 -mmt=8 -mfb=273 -md=1536m -ms=on (realpath $argv[1]).7z'
|
a 7zstd '7z a -m0=zstd -mx22 -mmt=8 -mfb=273 -md=1536m -ms=on (realpath $argv[1]).7z'
|
||||||
|
|
|
@ -2,6 +2,7 @@ function optiall
|
||||||
fd -e jpg -e jpeg -x jpegoptim
|
fd -e jpg -e jpeg -x jpegoptim
|
||||||
fd -e mp3 -x mp3packer \; -x mv '{.}'-vbr.mp3 {}
|
fd -e mp3 -x mp3packer \; -x mv '{.}'-vbr.mp3 {}
|
||||||
fd -e pdf -x qpdf --stream-data=compress --replace-input --compress-streams=y --recompress-flate --compression-level=9 --optimize-images {}
|
fd -e pdf -x qpdf --stream-data=compress --replace-input --compress-streams=y --recompress-flate --compression-level=9 --optimize-images {}
|
||||||
|
fd -e png -x oxipng \; -x advpng -z3
|
||||||
fd -t f -x advdef -z3
|
fd -t f -x advdef -z3
|
||||||
fd -t f -x advzip -z3
|
fd -t f -x advzip -z3
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
function undeflate
|
function undeflate
|
||||||
|
fd -e jpg -e jpeg -x jpegoptim
|
||||||
fd -t f -x advzip -z0
|
fd -t f -x advzip -z0
|
||||||
fd -t f -x advdef -z0
|
fd -t f -x advdef -z0
|
||||||
fd -e pdf -x qpdf --stream-data=uncompress --replace-input --compress-streams=n --recompress-flate --compression-level=0 --optimize-images {}
|
fd -e pdf -x qpdf --stream-data=uncompress --replace-input --compress-streams=n --recompress-flate --compression-level=0 --optimize-images {}
|
||||||
fd -e \~qpdf-orig -x rm
|
fd -e \~qpdf-orig -x rm
|
||||||
fd -e png -x advpng -z0
|
fd -e png -x oxipng \; -x advpng -z0
|
||||||
end
|
end
|
||||||
|
|
|
@ -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 ::: $entries
|
parallel -u "yt-dlp $argv (trurl -s host=youtube.com {})" ::: $entries
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,6 +3,7 @@ c.url.searchengines['!'] = 'librey.fly.dev/search.php?q=!{}'
|
||||||
c.url.searchengines['4'] = 'farside.link/4get/web?s={}'
|
c.url.searchengines['4'] = 'farside.link/4get/web?s={}'
|
||||||
c.url.searchengines['4'] = '4get.fly.dev/web?s={}'
|
c.url.searchengines['4'] = '4get.fly.dev/web?s={}'
|
||||||
c.url.searchengines['a'] = 'annas-archive.org/search?q={}'
|
c.url.searchengines['a'] = 'annas-archive.org/search?q={}'
|
||||||
|
c.url.searchengines['aur'] = 'aur.archlinux.org/packages?K={}'
|
||||||
c.url.searchengines['aw'] = 'wiki.archlinux.org/title/{}'
|
c.url.searchengines['aw'] = 'wiki.archlinux.org/title/{}'
|
||||||
c.url.searchengines['g'] = 'github.com/search?q={}'
|
c.url.searchengines['g'] = 'github.com/search?q={}'
|
||||||
c.url.searchengines['l'] = 'farside.link/librey/search.php?q={}'
|
c.url.searchengines['l'] = 'farside.link/librey/search.php?q={}'
|
||||||
|
|
Loading…
Reference in a new issue