From 60c82347a2c4c9a6c42c2d4a2f6e4923e1160d65 Mon Sep 17 00:00:00 2001 From: UhGoomba <53350163+UhGoomba@users.noreply.github.com> Date: Tue, 9 Jul 2024 04:25:27 -0400 Subject: add wofi, waybar, fish, kitty --- fish/.config/fish/auto-Hypr.fish | 5 ++ fish/.config/fish/config.fish | 144 +++++++++++++++++++++++++++++++++++++++ fish/.config/fish/fish_variables | 79 +++++++++++++++++++++ 3 files changed, 228 insertions(+) create mode 100644 fish/.config/fish/auto-Hypr.fish create mode 100644 fish/.config/fish/config.fish create mode 100755 fish/.config/fish/fish_variables (limited to 'fish/.config') diff --git a/fish/.config/fish/auto-Hypr.fish b/fish/.config/fish/auto-Hypr.fish new file mode 100644 index 0000000..c3c1890 --- /dev/null +++ b/fish/.config/fish/auto-Hypr.fish @@ -0,0 +1,5 @@ +# Auto start Hyprland on tty1 +if test -z "$DISPLAY" ;and test "$XDG_VTNR" -eq 1 + mkdir -p ~/.cache + exec Hyprland > ~/.cache/hyprland.log ^&1 +end diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish new file mode 100644 index 0000000..400596f --- /dev/null +++ b/fish/.config/fish/config.fish @@ -0,0 +1,144 @@ +# custom greeting +set KERNEL (uname -r) +set fish_greeting (set_color --bold efcf40)">"(set_color ef9540)"<"(set_color ea3838)">" \ + (set_color normal)"fish $FISH_VERSION" \ + (set_color normal)"| $KERNEL + " + +function fish_user_key_bindings + fish_vi_key_bindings + + # set kj to + bind -M insert -m default kj backward-char force-repaint +end + +# remove default clock +function fish_right_prompt + echo (set_color e5e5e5)"$USER"@(hostname) +end + +# indicator for vi +function fish_mode_prompt + switch "$fish_bind_mode" + case "default" + echo -n (set_color f43f5e)"𝓷" + case "insert" + echo -n (set_color 84cc16)"𝒾" + case "visual" + echo -n (set_color 8b5cf6)"𝓿" + case "*" + echo -n "?" + end + + echo -n " " +end + +# custom prompt +function fish_prompt + set_color --bold 4086ef + + set transformed_pwd (prompt_pwd | string replace -r "^~" (set_color --bold 06b6d4)"~"(set_color --bold 3b82f6)) + + echo -n $transformed_pwd + + # git branch + if git rev-parse --is-inside-work-tree >/dev/null 2>&1 + #space + echo -n " " + + echo -n (set_color --bold 4338ca)"(" + + set_color f0abfc + echo -n (git branch --show-current) + + echo -n (set_color --bold 4338ca)")" + set_color normal + end + + # space + echo -n " " + + # arrows + # echo -n (set_color --bold efcf40)"❱" + # echo -n (set_color --bold ef9540)"❱" + # echo -n (set_color --bold ea3838)"❱" + + echo -n (set_color --bold 14b8a6)"→" + + #space + echo -n " " + + set_color normal +end + +# set environment variables +set -x PATH $PATH:/usr/local/bin:/opt/bin + +# set editor +set -x EDITOR "code" + +# for hyprland +set -x WLR_NO_HARDWARE_CURSORS 1 + +# wayland +set -x GDK_BACKEND wayland +set -x QT_QPA_PLATFORM wayland + +# fzf +export FZF_DEFAULT_OPTS=" +--bind='ctrl-j:down,ctrl-k:up,ctrl-t:toggle-all,ctrl-v:toggle-preview,ctrl-space:toggle-preview' +--color=fg:#ffffff,hl:#00ff00,fg+:#a5b4fc,bg+:#737373,hl+:#ffff00,info:#14b8a6,spinner:#00ffff,pointer:#f59e0b +" + +alias ls "exa --icons" +alias treelist "tree -a -I '.git'" +alias fetch "fastfetch --localip-show-ipv4 false" + +# TokyoNight Color Palette from https://github.com/folke/tokyonight.nvim/blob/main/extras/fish/tokyonight_storm.fish +set -l foreground c0caf5 +# changed from default +set -l selection 6366f1 +# changed from default +set -l comment 737373 +set -l red f7768e +set -l orange ff9e64 +set -l yellow e0af68 +set -l green 9ece6a +set -l purple 9d7cd8 +set -l cyan 7dcfff +set -l pink bb9af7 + +# Syntax Highlighting Colors +set -g fish_color_normal $foreground +set -g fish_color_command $cyan +set -g fish_color_keyword $pink +set -g fish_color_quote $yellow +set -g fish_color_redirection $foreground +set -g fish_color_end $orange +set -g fish_color_error $red +set -g fish_color_param $purple +set -g fish_color_comment $comment +set -g fish_color_selection --background=$selection +set -g fish_color_search_match --background=$selection +set -g fish_color_operator $green +set -g fish_color_escape $pink +set -g fish_color_autosuggestion $comment + +# Completion Pager Colors +set -g fish_pager_color_progress $comment +set -g fish_pager_color_prefix $cyan +set -g fish_pager_color_completion $foreground +set -g fish_pager_color_description $comment +set -g fish_pager_color_selected_background --background=$selection + +# bun +set --export BUN_INSTALL "$HOME/.bun" +set --export PATH $BUN_INSTALL/bin $PATH + +# pnpm +set -gx PNPM_HOME "/home/mh/.local/share/pnpm" +if not string match -q -- $PNPM_HOME $PATH + set -gx PATH "$PNPM_HOME" $PATH +end +# pnpm end + diff --git a/fish/.config/fish/fish_variables b/fish/.config/fish/fish_variables new file mode 100755 index 0000000..bee8cd5 --- /dev/null +++ b/fish/.config/fish/fish_variables @@ -0,0 +1,79 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3400 +SETUVAR _fisher_jorgebucaran_2F_fisher_files:\x7e/\x2econfig/fish/functions/fisher\x2efish\x1e\x7e/\x2econfig/fish/completions/fisher\x2efish +SETUVAR _fisher_plugins:jorgebucaran/fisher +SETUVAR _fisher_upgraded_to_4_4:\x1d +SETUVAR fish_color_autosuggestion:555\x1ebrblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:blue +SETUVAR fish_color_comment:red +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:green +SETUVAR fish_color_error:brred +SETUVAR fish_color_escape:brcyan +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:brcyan +SETUVAR fish_color_param:cyan +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold +SETUVAR fish_color_search_match:\x2d\x2dbackground\x3d111 +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_key_bindings:fish_vi_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di +SETUVAR fish_pager_color_prefix:cyan\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr +SETUVAR pure_begin_prompt_with_current_directory:true +SETUVAR pure_check_for_new_release:false +SETUVAR pure_color_at_sign:pure_color_mute +SETUVAR pure_color_command_duration:pure_color_warning +SETUVAR pure_color_current_directory:pure_color_primary +SETUVAR pure_color_danger:red +SETUVAR pure_color_dark:black +SETUVAR pure_color_git_branch:pure_color_mute +SETUVAR pure_color_git_dirty:pure_color_mute +SETUVAR pure_color_git_stash:pure_color_info +SETUVAR pure_color_git_unpulled_commits:pure_color_info +SETUVAR pure_color_git_unpushed_commits:pure_color_info +SETUVAR pure_color_hostname:pure_color_mute +SETUVAR pure_color_info:cyan +SETUVAR pure_color_jobs:pure_color_normal +SETUVAR pure_color_light:white +SETUVAR pure_color_mute:brblack +SETUVAR pure_color_normal:normal +SETUVAR pure_color_prefix_root_prompt:pure_color_danger +SETUVAR pure_color_primary:blue +SETUVAR pure_color_prompt_on_error:pure_color_danger +SETUVAR pure_color_prompt_on_success:pure_color_success +SETUVAR pure_color_success:magenta +SETUVAR pure_color_system_time:pure_color_mute +SETUVAR pure_color_username_normal:pure_color_mute +SETUVAR pure_color_username_root:pure_color_light +SETUVAR pure_color_virtualenv:pure_color_mute +SETUVAR pure_color_warning:yellow +SETUVAR pure_enable_git:true +SETUVAR pure_enable_single_line_prompt:false +SETUVAR pure_reverse_prompt_symbol_in_vimode:true +SETUVAR pure_separate_prompt_on_error:false +SETUVAR pure_show_jobs:false +SETUVAR pure_show_prefix_root_prompt:false +SETUVAR pure_show_subsecond_command_duration:false +SETUVAR pure_show_system_time:false +SETUVAR pure_symbol_git_dirty:\x2a +SETUVAR pure_symbol_git_stash:\u2261 +SETUVAR pure_symbol_git_unpulled_commits:\u21e3 +SETUVAR pure_symbol_git_unpushed_commits:\u21e1 +SETUVAR pure_symbol_prefix_root_prompt:\x23 +SETUVAR pure_symbol_prompt:\u276f +SETUVAR pure_symbol_reverse_prompt:\u276e +SETUVAR pure_symbol_title_bar_separator:\x2d +SETUVAR pure_threshold_command_duration:5 -- cgit v1.2.3