diff --git a/.config/fish/aliasrc b/.config/fish/aliasrc index e1e6c3b..75e5022 100644 --- a/.config/fish/aliasrc +++ b/.config/fish/aliasrc @@ -1,7 +1,6 @@ # Alias File alias vim="nvim" - alias ls="exa --icons" alias tree="exa --icons --tree" diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 6679761..875c983 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -3,8 +3,8 @@ if status is-interactive end export EDITOR="nvim" -export TERMINAL="kitty" -export TERMINAL_PROG="kitty" +export TERMINAL="alacritty" +export TERMINAL_PROG="alacritty" export BROWSER="firefox" export PAGER="bat" @@ -18,12 +18,13 @@ export MANPAGER="sh -c 'col -bx | bat -l man -p'" export MANROFFOPT="-c" source $XDG_CONFIG_HOME/fish/aliasrc -bind \cf $XDG_DATA_HOME/scripts/tmux-sessionizer.sh + fish_default_key_bindings #fish_vi_key_bindings bind \cH backward-kill-path-component bind "[3;5~" kill-word +bind \cf $XDG_DATA_HOME/scripts/tmux-sessionizer.sh set -q GHCUP_INSTALL_BASE_PREFIX[1]; or set GHCUP_INSTALL_BASE_PREFIX $HOME ; set -gx PATH $HOME/.cabal/bin /home/tsousa/.ghcup/bin $PATH # ghcup-env fish_add_path $HOME/.local/share/nvim/mason/bin/ diff --git a/.config/fish/config.fish.bak b/.config/fish/config.fish.bak new file mode 100644 index 0000000..2fe3198 --- /dev/null +++ b/.config/fish/config.fish.bak @@ -0,0 +1,42 @@ +if status is-interactive + # Commands to run in interactive sessions can go here +end + +export EDITOR="nvim" +export TERMINAL="kitty" +export TERMINAL_PROG="kitty" +export BROWSER="firefox" +export PAGER="bat" + +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CACHE_HOME="$HOME/.cache" + +export GOPATH="$XDG_DATA_HOME/go" + +export MANPAGER="sh -c 'col -bx | bat -l man -p'" +export MANROFFOPT="-c" + +source $XDG_CONFIG_HOME/fish/aliasrc + +fish_vi_key_bindings +bind \cH backward-kill-path-component +bind "[3;5~" kill-word + +set -q GHCUP_INSTALL_BASE_PREFIX[1]; or set GHCUP_INSTALL_BASE_PREFIX $HOME ; set -gx PATH $HOME/.cabal/bin /home/tsousa/.ghcup/bin $PATH # ghcup-env +fish_add_path $HOME/.local/share/nvim/mason/bin/ +fish_add_path $HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin +fish_add_path $HOME/.cargo/bin/ +fish_add_path $HOME/.config/emacs/bin +# google cloud bin +fish_add_path /opt/google-cloud-cli/bin + +starship init fish | source + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +if test -f /home/tsousa/.miniconda3/bin/conda + eval /home/tsousa/.miniconda3/bin/conda "shell.fish" "hook" $argv | source +end +# <<< conda initialize <<< +conda deactivate diff --git a/.config/i3/config b/.config/i3/config index 41e3079..feb6c2c 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -230,7 +230,7 @@ assign [class="discord"] 5 # startup programs exec --no-startup-id nextcloud exec --no-startup-id nitrogen --restore -exec --no-startup-id i3-msg 'workspace 2; exec firefox; workspace 1; exec kitty' +exec --no-startup-id i3-msg 'workspace 2; exec firefox; workspace 1; exec $terminal' exec --no-startup-id picom -b exec --no-startup-id openrgb -d 0 -m off -d 1 -m off exec_always --no-startup-id ~/.config/polybar/launch.sh diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..6b1d856 --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,24 @@ +set -g default-terminal "tmux-256color" +set -ag terminal-overrides ",xterm-256color:RGB" + +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix +set -g status-style 'bg=#181926 fg=#cad3f5' +set-option -g status-position top +set -g status-left-length 20 + +bind r source-file ~/.config/tmux/tmux.conf +set -g base-index 1 + +set-window-option -g mode-keys vi +bind -T copy-mode-vi v send-keys -X begin-selection +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' + +# vim-like pane switching +bind -r ^ last-window +bind -r k select-pane -U +bind -r j select-pane -D +bind -r h select-pane -L +bind -r l select-pane -R +