1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-19 05:12:47 +00:00

general shell usage improvements

This commit is contained in:
Phantop 2024-06-20 14:18:28 -04:00
parent b62c7810e8
commit cc67eef481
6 changed files with 10 additions and 2 deletions

View file

@ -77,6 +77,8 @@ krita
labwc
lagrange
libheif
libimobiledevice
libimobiledevice-glue
libplist
libpulse
libusbmuxd

View file

@ -31,6 +31,7 @@ a gittop 'cd (git root)'
a giveme 's chown $USER'
a gsopti 'fd -e pdf -x gs -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile={}1 {} \; -x mv {}1 {}'
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 kittab 'kitty @ launch --type=tab --cwd $PWD'
a l ls
@ -56,11 +57,13 @@ a ssh 'kitty +kitten ssh'
a sus 'systemctl suspend'
a tar bsdtar
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 v vi
a venv 'python3 -m venv venv && source venv/bin/activate.fish && pip3 install -r requirements.txt'
a vi nvim
a wallp 'gsettings set org.gnome.desktop.background picture-uri file://(realpath $argv);:'
a ya 'yay -a'
a ydl 'yt-dlp'
a 7zstd '7z a -m0=zstd -mx22 -mmt=8 -mfb=273 -md=1536m -ms=on (realpath $argv[1]).7z'

View file

@ -2,6 +2,7 @@ function optiall
fd -e jpg -e jpeg -x jpegoptim
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 png -x oxipng \; -x advpng -z3
fd -t f -x advdef -z3
fd -t f -x advzip -z3
end

View file

@ -1,7 +1,8 @@
function undeflate
fd -e jpg -e jpeg -x jpegoptim
fd -t f -x advzip -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 \~qpdf-orig -x rm
fd -e png -x advpng -z0
fd -e png -x oxipng \; -x advpng -z0
end

View file

@ -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 ::: $entries
parallel -u "yt-dlp $argv (trurl -s host=youtube.com {})" ::: $entries
end

View file

@ -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'] = '4get.fly.dev/web?s={}'
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['g'] = 'github.com/search?q={}'
c.url.searchengines['l'] = 'farside.link/librey/search.php?q={}'