#!/bin/bash# Original Source# https://github.com/ThePrimeagen/.dotfiles/blob/master/bin/.local/scripts/tmux-sessionizer
selected=$(find ~/projects -mindepth 1 -maxdepth 2 -type d | fzf)if [[ -z$selected ]];thenexit 0
fi
selected_name=$(basename "$selected"| tr . _)
tmux_running=$(pgrep tmux)# if not inside tmux session, and not runningif [[ -z$TMUX ]] && [[ -z$tmux_running ]];then
tmux new-session -s $selected_name -c $selectedexit 0
fiif! tmux has-session -t=$selected_name2> /dev/null;then
tmux new-session -ds $selected_name -c $selectedfi# if outside just attachif [[ -z$TMUX ]];then
tmux attach -t $selected_nameexit 0
fi
tmux switch-client -t $selected_name
Alacritty Setup
[window]
decorations = "Buttonless"padding = { y = 5 }
[font]
normal = { family = "Hack Nerd Font" }
size = 12
Tmux Setup ~/.tmux.conf
set -g mouse on
unbind '"'
unbind %
bind | split-window -h
bind - split-window -v
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Set hyperlinks
set -ga terminal-features "*:hyperlinks"
# Vi mode
setw -g mode-keys vi
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_flavour 'macchiato'
set -g @catppuccin_status_modules_right "application session"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'