From c461bcf1fd7c85768c63febc5513cb90a2810cc9 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Fri, 29 Aug 2025 00:06:35 +0200 Subject: [PATCH] Move Tmux automatic load from ZSH to Foot --- foot/.config/foot/foot.ini | 14 +++++++------- zsh/.profile.d/cargo.sh | 0 zsh/.profile.d/golang.sh | 0 zsh/.profile.d/java.sh | 0 zsh/.profile.d/mise.sh | 0 zsh/.profile.d/tmux.sh | 5 +++++ zsh/.profile.d/zoxide.sh | 0 zsh/.zshrc | 3 --- 8 files changed, 12 insertions(+), 10 deletions(-) mode change 100644 => 100755 zsh/.profile.d/cargo.sh mode change 100644 => 100755 zsh/.profile.d/golang.sh mode change 100644 => 100755 zsh/.profile.d/java.sh mode change 100644 => 100755 zsh/.profile.d/mise.sh create mode 100755 zsh/.profile.d/tmux.sh mode change 100644 => 100755 zsh/.profile.d/zoxide.sh diff --git a/foot/.config/foot/foot.ini b/foot/.config/foot/foot.ini index da83995..e5f341d 100644 --- a/foot/.config/foot/foot.ini +++ b/foot/.config/foot/foot.ini @@ -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 diff --git a/zsh/.profile.d/cargo.sh b/zsh/.profile.d/cargo.sh old mode 100644 new mode 100755 diff --git a/zsh/.profile.d/golang.sh b/zsh/.profile.d/golang.sh old mode 100644 new mode 100755 diff --git a/zsh/.profile.d/java.sh b/zsh/.profile.d/java.sh old mode 100644 new mode 100755 diff --git a/zsh/.profile.d/mise.sh b/zsh/.profile.d/mise.sh old mode 100644 new mode 100755 diff --git a/zsh/.profile.d/tmux.sh b/zsh/.profile.d/tmux.sh new file mode 100755 index 0000000..bef9bbd --- /dev/null +++ b/zsh/.profile.d/tmux.sh @@ -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 diff --git a/zsh/.profile.d/zoxide.sh b/zsh/.profile.d/zoxide.sh old mode 100644 new mode 100755 diff --git a/zsh/.zshrc b/zsh/.zshrc index e495d29..86e2f12 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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