add fish config

This commit is contained in:
Mans Ziesel 2023-11-12 20:10:32 +01:00
parent 4869212f74
commit e44c5eaded
5 changed files with 92 additions and 4 deletions

30
.config/fish/config.fish Normal file
View File

@ -0,0 +1,30 @@
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 mc='mcrcon -H mc.mzsl.nl -p likmebalzak'
alias ark='mcrcon -H mzsl-ts -P 27020 -p likmebalzak'
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
export HF_TOKEN=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
bind yy fish_clipboard_copy
bind Y fish_clipboard_copy
bind p fish_clipboard_paste

View File

@ -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

View File

@ -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

View File

@ -332,9 +332,11 @@ set $ws10 "10"
#workspace $ws5 output HDMI-0 #workspace $ws5 output HDMI-0
# bind program to workspace and focus to them on startup: # bind program to workspace and focus to them on startup:
assign [class="(?i)firefox"] $ws1 # assign [class="(?i)firefox"] $ws1
assign [class="Xfce4-terminal"] $ws2 # assign [class="Xfce4-terminal"] $ws2
assign [class="Thunar"] $ws3 # 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: # automatic set focus new window if it opens on another workspace than the current:
for_window [class=Xfce4-terminal] focus for_window [class=Xfce4-terminal] focus
@ -354,6 +356,7 @@ for_window [class=Thunar] focus
# manpage: https://man.archlinux.org/man/xcompmgr.1.en # manpage: https://man.archlinux.org/man/xcompmgr.1.en
# install xcompmgr package to use it (yay -S xcompmgr) # install xcompmgr package to use it (yay -S xcompmgr)
exec --no-startup-id xcompmgr -C -n & exec --no-startup-id xcompmgr -C -n &
exec --no-startup-id playerctld daemon
# or an more specialized config like this: # or an more specialized config like this:
#exec --no-startup-id xcompmgr -c -C -t-5 -l-5 -r4.2 -o.55 & #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 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 && thunar
exec --no-startup-id sleep 3 && spotify exec --no-startup-id sleep 3 && spotify
exec --no-startup-id sleep 3 && obsidian
############### ###############
# system tray # # system tray #

View File

@ -15,4 +15,4 @@ font_family Iosevka
font_size 14.0 font_size 14.0
# background_opacity 0.9 # background_opacity 0.9
background_opacity 0.9 background_opacity 1