2021-01-07 14:23:59 +00:00
|
|
|
#!/usr/bin/fish
|
|
|
|
alias a 'alias -s'
|
|
|
|
|
|
|
|
a D 'cd $D'
|
2021-01-24 05:49:08 +00:00
|
|
|
a aliases 'v (which aliases); command aliases'
|
2021-10-08 19:24:27 +00:00
|
|
|
a all2jxl 'fd -e{png,jpg} -x cjxl -e 8 -d 0 {} {.}.jxl && fd -e{png,jpg} -x rm'
|
2021-08-11 00:14:59 +00:00
|
|
|
a base64d 'echo (echo $argv | base64 -d 2>/dev/null);:'
|
2021-01-07 14:23:59 +00:00
|
|
|
a bax 'source (which bax) && bax'
|
2021-08-11 00:14:59 +00:00
|
|
|
a cd 'cd (realpath $argv 2> /dev/null);:'
|
2021-08-10 00:46:26 +00:00
|
|
|
a clip 'xclip -sel clip'
|
2021-01-24 05:49:08 +00:00
|
|
|
a cpugov 's cpupower frequency-set -g performance'
|
2021-09-07 18:31:45 +00:00
|
|
|
a dirdl 'wget -r -k -p --no-parent --no-clobber -e robots=off -R "index.html*"'
|
2021-08-10 00:46:26 +00:00
|
|
|
a dl 'not test "$argv" && cd ~/Downloads || aria2c -c -x16 -s16'
|
2021-01-07 14:23:59 +00:00
|
|
|
a dot 'cd ~/.dotfiles'
|
2021-01-24 05:49:08 +00:00
|
|
|
a ff 'fd -HILi -Edosdevices -E.git'
|
2021-01-07 14:23:59 +00:00
|
|
|
a g git
|
|
|
|
a giveme 's chown $USER'
|
|
|
|
a hardinfo 'inxi -SPARM -GCDN -v1 -xGCRS -Fxz'
|
2021-07-10 01:10:18 +00:00
|
|
|
a imgsum 'printf "$argv: " && identify -format "%#\n"'
|
2021-01-07 14:23:59 +00:00
|
|
|
a l ls
|
|
|
|
a la 'l -a'
|
|
|
|
a less 'eval $PAGER'
|
2021-10-28 18:14:18 +00:00
|
|
|
a nix 'bax . ~/.nix-profile/etc/profile.d/nix.sh; command nix'
|
2021-01-07 14:23:59 +00:00
|
|
|
a off shutdown
|
2021-08-11 00:14:59 +00:00
|
|
|
a offh 'off (math "60*"$argv);:'
|
2021-10-08 19:24:27 +00:00
|
|
|
a open xdg-open
|
2021-01-07 14:23:59 +00:00
|
|
|
a pagedl 'wget -H -k -p --no-clobber -e robots=off'
|
2021-07-10 01:10:18 +00:00
|
|
|
a png2webp 'fd -e png -x cwebp -z 9 -mt {} -o {.}.webp && fd -e png -x rm'
|
2021-08-10 00:46:26 +00:00
|
|
|
a qutainer 'qutebrowser -B /tmp'
|
2021-09-25 05:28:09 +00:00
|
|
|
a rmdirs 'ff -t d -x rmdir -p'
|
2021-07-10 01:10:18 +00:00
|
|
|
a rmlinks 'ff -t l -x rm'
|
2021-01-07 14:23:59 +00:00
|
|
|
a qb 'qutebrowser --target auto'
|
|
|
|
a re 'systemctl reboot -i'
|
2021-03-23 12:16:56 +00:00
|
|
|
a s 'sudo env "PATH=$PATH"'
|
2021-01-07 14:23:59 +00:00
|
|
|
a se 's eopkg'
|
2021-08-10 00:46:26 +00:00
|
|
|
a spleet 'spleeter separate -o . -c flac'
|
2021-08-11 00:14:59 +00:00
|
|
|
a ta 'tmux a -t (math 0 + "0$argv");:'
|
2021-10-08 19:24:27 +00:00
|
|
|
a tar bsdtar
|
2021-10-27 06:58:27 +00:00
|
|
|
a twitch-dl 'ffmpeg -i (ydl -e $argv[1]|tr / _) -c copy $argv[2..-1] "file:(ydl -g $argv[1]).mkv"'
|
2021-01-07 14:23:59 +00:00
|
|
|
a up 'se up --y'
|
|
|
|
a v vi
|
|
|
|
a vi nvim
|
2021-08-11 00:14:59 +00:00
|
|
|
a wallp 'gsettings set org.gnome.desktop.background picture-uri file://(realpath $argv);:'
|
2021-10-27 06:58:27 +00:00
|
|
|
a wm 'startx (which $argv[1]; argv[2..-1])'
|
2021-08-10 00:46:26 +00:00
|
|
|
|
|
|
|
a ao3 'egrep works/[0-9]+ $argv -o | uniq | tr -d a-z | parallel aria2c "https://ao3.org/downloads{}/\*.epub" -d ao3; rm'
|
2021-09-25 05:28:09 +00:00
|
|
|
a invid 'tmux new -s 0 -d "docker-compose -f ~/.config/invid.yml up --build"'
|
2021-08-10 00:46:26 +00:00
|
|
|
a launcher 'rofi -combi-modi "drun,run" -show combi -modi "combi,window"'
|
2021-08-15 17:51:07 +00:00
|
|
|
a listen 'pactl list | grep loop && pactl unload-module module-loopback || pactl load-module module-loopback'
|
2021-08-10 00:46:26 +00:00
|
|
|
a symlinks 'fd -td -d1 . $D -x sh -c "rm ~/{/}; rmdir ~/{/}; ln -s {} ~/{/}"'
|
2021-10-27 01:10:17 +00:00
|
|
|
a tcsv 'curl -sL http://torrents-csv.ml/service/search?q="$argv"|jq ".[]|.name,.infohash,.seeders";:'
|
2021-10-26 19:01:32 +00:00
|
|
|
a ydl 'yt-dlp -ciw --write-sub --write-auto-sub --embed-subs --sub-lang=en -o "%(title)s.%(ext)s"'
|
2021-02-25 21:54:50 +00:00
|
|
|
|
2021-07-25 04:19:15 +00:00
|
|
|
a compress '7z a -m0=flzma2 -mx9 -mmt=8 -mfb=273 -md=256m -ms=on (realpath $argv[1]).7z'
|
2021-02-25 21:54:50 +00:00
|
|
|
a dwarf 'mkdwarfs -i . -o $PWD.dwarfs'
|
|
|
|
a redwarf 'mkdwarfs -o redwarf.dwarfs --recompress -i'
|
|
|
|
a squash 'mksquashfs . $PWD.squashfs -comp zstd -b 1M -Xcompression-level 22'
|
2021-03-06 23:40:15 +00:00
|
|
|
a undwarfs 'mkdir dwarfs-root; dwarfsextract -o dwarfs-root -i'
|
2021-01-07 14:23:59 +00:00
|
|
|
|
|
|
|
for i in (cat ~/.config/qutebrowser/quickmarks | cut -d ' ' -f1)
|
|
|
|
a $i "qb / \":quickmark-load $i\""
|
|
|
|
end
|
|
|
|
|
2021-08-10 00:46:26 +00:00
|
|
|
for i in getnative mcross nsz scdl spleeter thonny
|
2021-01-07 14:23:59 +00:00
|
|
|
a $i "pipx run $i"
|
|
|
|
end
|