From 6b7a32d2f741eec88158800a883d9f764d96b437 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 12 Nov 2023 20:20:18 +0100 Subject: [PATCH] add fish config --- .config/fish/config.fish | 27 ++++++++++++++++++++ .config/fish/fish_variables | 33 +++++++++++++++++++++++++ .config/fish/functions/fish_prompt.fish | 21 ++++++++++++++++ .config/i3/config | 10 +++++--- .config/kitty/kitty.conf | 2 +- 5 files changed, 89 insertions(+), 4 deletions(-) create mode 100644 .config/fish/config.fish create mode 100644 .config/fish/fish_variables create mode 100644 .config/fish/functions/fish_prompt.fish diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..a5bedc3 --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,27 @@ +if status is-interactive + # Commands to run in interactive sessions can go here +end + +alias vi='nvim' +alias vim='nvim' +#alias ssh='TERM=xterm-256color ssh' +alias ssh='TERM=xterm-256color /usr/bin/ssh' +alias rdp='rdesktop -r sound:local -r disk:mounttest=/home/mans/windows' +alias downl='aria2c -j 12 -s 12 -x 12 -k 5M' + +export PAGER='nvim +Man!' + +# alias ef='_open_files_for_editing' # 'ef' opens given file(s) for editing +# alias pacdiff=eos-pacdiff +################################################################################ + + +# bun +export BUN_INSTALL="$HOME/.bun" +#export PATH=$BUN_INSTALL/bin:$PATH +export GO_BIN="$HOME/go/bin" +# export PATH=$GO_BIN:$PATH + +bind yy fish_clipboard_copy +bind Y fish_clipboard_copy +bind p fish_clipboard_paste diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables new file mode 100644 index 0000000..6474a82 --- /dev/null +++ b/.config/fish/fish_variables @@ -0,0 +1,33 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3400 +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:bryellow\x1e\x2d\x2dbackground\x3dbrblack +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_greeting:\x1d +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:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr +SETUVAR fish_user_paths:/home/mans/go/bin\x1e/home/mans/\x2ebun/bin diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..c4e8847 --- /dev/null +++ b/.config/fish/functions/fish_prompt.fish @@ -0,0 +1,21 @@ +function fish_prompt + # This is a simple prompt. It looks like + # alfa@nobby /path/to/dir $ + # with the path shortened and colored + # and a "#" instead of a "$" when run as root. + set -l symbol ' $ ' + set -l color $fish_color_cwd + if fish_is_root_user + set symbol ' # ' + set -q fish_color_cwd_root + and set color $fish_color_cwd_root + end + + echo -n $USER@$hostname + + set_color $color + echo -n (prompt_pwd) + set_color normal + + echo -n $symbol +end diff --git a/.config/i3/config b/.config/i3/config index d45a19d..4ff5d98 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -332,9 +332,11 @@ set $ws10 "10" #workspace $ws5 output HDMI-0 # bind program to workspace and focus to them on startup: -assign [class="(?i)firefox"] $ws1 -assign [class="Xfce4-terminal"] $ws2 -assign [class="Thunar"] $ws3 +# assign [class="(?i)firefox"] $ws1 +# assign [class="Xfce4-terminal"] $ws2 +# assign [class="Thunar"] $ws3 +assign [class="Spotify"] $ws10 +assign [class="obsidian"] $ws8 # automatic set focus new window if it opens on another workspace than the current: for_window [class=Xfce4-terminal] focus @@ -354,6 +356,7 @@ for_window [class=Thunar] focus # manpage: https://man.archlinux.org/man/xcompmgr.1.en # install xcompmgr package to use it (yay -S xcompmgr) exec --no-startup-id xcompmgr -C -n & +exec --no-startup-id playerctld daemon # or an more specialized config like this: #exec --no-startup-id xcompmgr -c -C -t-5 -l-5 -r4.2 -o.55 & # @@ -440,6 +443,7 @@ exec --no-startup-id /usr/bin/dunst # exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md #exec --no-startup-id sleep 3 && thunar exec --no-startup-id sleep 3 && spotify +exec --no-startup-id sleep 3 && obsidian ############### # system tray # diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index c08aa4f..b2c9ef7 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -15,4 +15,4 @@ font_family Iosevka font_size 14.0 # background_opacity 0.9 -background_opacity 0.9 +background_opacity 1