1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-23 13:48:03 +00:00

Fish: move all to config files

This commit is contained in:
Phantop 2021-08-10 20:14:59 -04:00
parent 2fcdc01842
commit 4094313f2d
12 changed files with 23 additions and 30 deletions

View file

@ -4,6 +4,12 @@ set -x MANPAGER "nvim -c 'set ft=man' -"
test (hostname) = aperture && set D /mnt/LocalDiskD/
bind \eo 'ranger'
bind \ed 'ncdu'
bind \et 'tmux'
bind \ef 'fzf | xclip -selection clipboard'
fish_add_path -g ~/.local/bin /usr/lib64/ccache/bin
starship init fish --print-full-init | source
source /usr/share/autojump/autojump.fish

View file

@ -1,3 +0,0 @@
function base64d
echo (echo $argv | base64 -d 2>/dev/null)
end

View file

@ -1,3 +0,0 @@
function cd -w cd
builtin cd (realpath $argv 2> /dev/null)
end

View file

@ -1,6 +0,0 @@
function fish_user_key_bindings
bind \eo 'ranger'
bind \ed 'ncdu'
bind \et 'tmux'
bind \ef 'fzf | xclip -selection clipboard'
end

View file

@ -1,3 +0,0 @@
function offh -w math
off (math "60*"$argv)
end

View file

@ -1,3 +0,0 @@
function ta -w math
tmux a -t (math 0 + "0$argv")
end

View file

@ -1,3 +0,0 @@
function wallp --wraps=realpath
gsettings set org.gnome.desktop.background picture-uri file://(realpath $argv)
end

View file

@ -10,7 +10,9 @@ Alt+Right add video-pan-x -0.05
Alt+Up add video-pan-y 0.05
Alt+Down add video-pan-y -0.05
CTRL+1 change-list glsl-shaders set "~~/shaders/Anime4K_Line_Reconstruction_Light_L.glsl:~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl:~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl:~~/shaders/Anime4K_Line_Reconstruction_Medium_L.glsl:~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise.glsl:~~/shaders/Anime4K_DeRing.glsl:"
CTRL+2 change-list glsl-shaders set "~~/shaders/Anime4K_Line_Reconstruction_Medium_L.glsl:~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl:~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl:~~/shaders/Anime4K_Line_Reconstruction_Light_L.glsl:~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise.glsl:~~/shaders/Anime4K_DeRing.glsl:"
CTRL+3 change-list glsl-shaders set "~~/shaders/Anime4K_Line_Reconstruction_Heavy_L.glsl:~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl:~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl:~~/shaders/Anime4K_Line_Reconstruction_Light_L.glsl:~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise.glsl:~~/shaders/Anime4K_DeRing.glsl:"
CTRL+0 change-list glsl-shaders clr ""
CTRL+1 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_Moderate_VL.glsl"; show-text "Anime4K: Modern 1080p (HQ)"
CTRL+2 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_Light_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_L.glsl"; show-text "Anime4K: Modern 720p->1080p (HQ)"
CTRL+3 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Upscale_Denoise_CNN_x2_VL.glsl:~~/shaders/Anime4K_Restore_CNN_Moderate_M.glsl"; show-text "Anime4K: Modern SD->1080p (HQ)"
CTRL+4 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_Light_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_L.glsl:~~/shaders/Anime4K_Restore_CNN_Moderate_M.glsl"; show-text "Anime4K: Old SD->1080p (HQ)"
CTRL+0 no-osd change-list glsl-shaders clr ""; show-text "GLSL shaders cleared"

View file

@ -17,6 +17,7 @@ use-filedir-conf
sub-font = Funimitation
sub-font-size = 36
profile = gpu-hq
scale = spline36
cscale = spline36
dscale = spline36

View file

@ -3,7 +3,9 @@ alias a 'alias -s'
a D 'cd $D'
a aliases 'v (which aliases); command aliases'
a base64d 'echo (echo $argv | base64 -d 2>/dev/null);:'
a bax 'source (which bax) && bax'
a cd 'cd (realpath $argv 2> /dev/null);:'
a clip 'xclip -sel clip'
a cpugov 's cpupower frequency-set -g performance'
a dirdl 'wget -r -k -p --no-parent --no-clobber -e robots=off'
@ -18,6 +20,7 @@ a l ls
a la 'l -a'
a less 'eval $PAGER'
a off shutdown
a offh 'off (math "60*"$argv);:'
a open rifle
a pagedl 'wget -H -k -p --no-clobber -e robots=off'
a png2webp 'fd -e png -x cwebp -z 9 -mt {} -o {.}.webp && fd -e png -x rm'
@ -28,10 +31,12 @@ a re 'systemctl reboot -i'
a s 'sudo env "PATH=$PATH"'
a se 's eopkg'
a spleet 'spleeter separate -o . -c flac'
a ta 'tmux a -t (math 0 + "0$argv");:'
a up 'se up --y'
a v vi
a vi nvim
a wm 'startx (which $argv[1] && set -e argv[1])'
a wallp 'gsettings set org.gnome.desktop.background picture-uri file://(realpath $argv);:'
a wm 'startx (which $argv[1]; set -e argv[1])'
a ao3 'egrep works/[0-9]+ $argv -o | uniq | tr -d a-z | parallel aria2c "https://ao3.org/downloads{}/\*.epub" -d ao3; rm'
a invid 'tmux new -s 0 -d "cd ~/.invid; git pull; docker-compose up --build"'

View file

@ -1,5 +1,5 @@
#!/bin/sh
title=$(youtube-dl -e $1 | sed 's|/|_|g')
title=$(youtube-dl -e $1 | sed 'tr / _')
link=$(youtube-dl -g $1)
shift

6
.setup
View file

@ -24,10 +24,10 @@ fd -E .git -t d -H -x mkdir -p ~/{}
stow .
mkdir -p ~/.config/mpv/shaders ~/.local/share/qutebrowser/pdfjs ~/.config/nvim/autoload/
fish -c 'function un; unzip -o (curl https://api.github.com/repos/$argv[1]/releases | grep -om1 http.\*zip | wget -i- -O- | psub) -d $argv[2]; end
un bloc97/Anime4k ~/.config/mpv/shaders; un mozilla/pdf.js ~/.local/share/qutebrowser/pdfjs'
un(){ F=$(mktemp); curl https://api.github.com/repos/$1/releases | grep -om1 http.\*zip | wget -i- -O$F; unzip $F -d $2;}
un bloc97/Anime4k ~/.config/mpv/shaders; un mozilla/pdf.js ~/.local/share/qutebrowser/pdfjs
wget https://github.com/junegunn/vim-plug/raw/master/plug.vim -o ~/.config/nvim/autoload/plug.vim
wget https://github.com/junegunn/vim-plug/raw/master/plug.vim -O ~/.config/nvim/autoload/plug.vim
nvim +PlugUpdate +q +q
sudo systemctl mask tracker-{store,miner-fs,miner-rss,extra,miner-apps,writeback}