Move Tmux automatic load from ZSH to Foot

This commit is contained in:
Fabio Scotto di Santolo
2025-08-29 00:06:35 +02:00
parent 3f76100964
commit c461bcf1fd
8 changed files with 12 additions and 10 deletions

View File

@@ -1,11 +1,11 @@
# === General settings ===
[main]
shell=/bin/zsh # Default shell to launch in the terminal
font=0xProto Nerd Font:size=14 # Font family and size used in the terminal
initial-window-size-chars=160x45 # Initial size in character columns x rows
selection-target=clipboard # Copy selected text directly to system clipboard
term=foot # Terminal type identifier (useful for compatibility)
pad=8x8 # Adds 8-pixel padding around the content (horizontal x vertical)
shell=/bin/zsh -c "exec ~/.profile.d/tmux.sh" # Default shell to launch in the terminal
font=0xProto Nerd Font:size=14 # Font family and size used in the terminal
initial-window-size-chars=160x45 # Initial size in character columns x rows
selection-target=clipboard # Copy selected text directly to system clipboard
term=foot # Terminal type identifier (useful for compatibility)
pad=8x8 # Adds 8-pixel padding around the content (horizontal x vertical)
# === Mouse settings ===
[mouse]
@@ -63,7 +63,7 @@ selection-foreground=cdd6f4 # Color of selected text
selection-background=414356 # Background color of selected text
search-box-no-match=11111b f38ba8 # Colors for search box when no match is found
search-box-match=cdd6f0 313244 # Colors for search box when a match is found
search-box-match=cdd6f0 313244 # Colors for search box when a match is found
jump-labels=11111b fab387 # Colors for jump labels (e.g., in URL launcher)
urls=89b4fa # Color for detected URLs

0
zsh/.profile.d/cargo.sh Normal file → Executable file
View File

0
zsh/.profile.d/golang.sh Normal file → Executable file
View File

0
zsh/.profile.d/java.sh Normal file → Executable file
View File

0
zsh/.profile.d/mise.sh Normal file → Executable file
View File

5
zsh/.profile.d/tmux.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env zsh
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach-session -t default || tmux new-session -s default
fi

0
zsh/.profile.d/zoxide.sh Normal file → Executable file
View File

View File

@@ -84,6 +84,3 @@ alias userlist="cut -d: -f1 /etc/passwd | sort"
alias ip='ip -color'
alias stow='stow -d $DOTFILES '
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach-session -t default || tmux new-session -s default
fi