aboutsummaryrefslogtreecommitdiff
path: root/.config/fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fish')
-rw-r--r--.config/fish/colors.fish10
-rw-r--r--.config/fish/config.fish44
2 files changed, 38 insertions, 16 deletions
diff --git a/.config/fish/colors.fish b/.config/fish/colors.fish
index 381b0e9..fdc8987 100644
--- a/.config/fish/colors.fish
+++ b/.config/fish/colors.fish
@@ -9,15 +9,15 @@ set fish_color_error white
set fish_color_param white
set fish_color_valid_path white
set fish_color_option white
-set fish_color_comment "#77828c"
+set fish_color_comment "#a8afb7"
set fish_color_operator white
set fish_color_escape yellow
-set fish_color_autosuggestion "#77828c"
+set fish_color_autosuggestion "#a8afb7"
set fish_color_search_match --background=black
# pager
-set fish_pager_color_progress "#77828c"
+set fish_pager_color_progress "#a8afb7"
set fish_pager_color_prefix white
-set fish_pager_color_completion "#77828c"
-set fish_pager_color_description "#77828c"
+set fish_pager_color_completion "#a8afb7"
+set fish_pager_color_description "#a8afb7"
set fish_pager_color_selected_background --background=black
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index 59a861c..97e55eb 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -1,9 +1,6 @@
if not status is-interactive
exit
end
-# for agent in $(pidof ssh-agent | string split " ")
-# kill $agent
-# end
# xdg
set -gx XDG_CONFIG_HOME "$HOME/.config"
@@ -35,7 +32,6 @@ set -gx PNPM_HOME "$HOME/.local/share/pnpm"
# program
set -gx EDITOR "nvim"
-# set -gx VISUAL "lite-xl"
set -gx MANPAGER "nvim +Man!"
set -gx MANWIDTH 999
set -gx PF_INFO "ascii title os wm editor shell kernel palette"
@@ -57,7 +53,8 @@ source $FISH_CFG/bindings.fish
# configs
source $FISH_CFG/done_cfg.fish
-# source /opt/asdf-vm/asdf.fish
+# secrets
+source $FISH_CFG/secret.fish
# abbreviations & aliases
abbr -a paru paru --limit 10
@@ -72,7 +69,6 @@ alias dots="git --git-dir=$HOME/.dots --work-tree=$HOME"
# alias sudo="doas"
alias ls="ls --color=auto"
alias grep="grep -P --color=always"
-alias molest="sudo touch"
alias wget="wget --hsts-file=$XDG_DATA_HOME/wget-hsts"
alias stylua="stylua -s"
alias cd="z"
@@ -91,10 +87,8 @@ function ssh
export TERM=xterm-256color
end
function flac_preview
- # nsxiv (ffmpeg -i $argv[1] -v 8 -t 30 -lavfi showspectrumpic=s=hd720 -f image2 pipe: | psub)
- nsxiv (ffmpeg -i $argv[1] -v 8 -t 30 -lavfi showspectrumpic=s=2k -f image2 pipe: | psub)
-
-
+ nsxiv (ffmpeg -i $argv[1] -v 8 -t 30 -lavfi showspectrumpic=s=hd720 -f image2 pipe: | psub)
+ # nsxiv (ffmpeg -i $argv[1] -v 8 -t 30 -lavfi showspectrumpic=s=2k -f image2 pipe: | psub)
end
function multicd
echo (string repeat -n (math (string length -- $argv[1]) - 1) ../)
@@ -111,8 +105,36 @@ end
abbr -a !! --position anywhere --function last_history_item
# shell init
-# eval "$(ssh-agent -c)" &>/dev/null
fish_ssh_agent
starship init fish | source
zoxide init fish | source
direnv hook fish | source
+
+function dl
+ yt-dlp -v --download-archive "archive.txt" \
+ --write-info-json --write-thumbnail --embed-subs --embed-thumbnail --embed-metadata \
+ --merge-output-format "mkv" -f "bestvideo[height<=1080][width<=1920]+bestaudio" \
+ --abort-on-error -o "files/%(extractor_key)s%(id)s/item.%(ext)s" \
+ --extractor-args "youtube:player-client=default,mweb" $argv
+end
+
+function archive_website
+ wget \
+ # Download the whole site.
+ --recursive \
+ # Get all assets/elements (CSS/JS/images).
+ --page-requisites \
+ # Save files with .html on the end.
+ --adjust-extension \
+ # Include necessary assets from offsite as well.
+ --span-hosts \
+ # Update links to still work in the static version.
+ --convert-links \
+ # Modify filenames to work in Windows as well.
+ --restrict-file-names=windows \
+ # Do not follow links outside this domain.
+ --domains yoursite.com \
+ # Don't follow links outside the directory you pass in.
+ --no-parent \
+ $argv # The URL to download
+end