From 0fd116d7a0e50dda2c226fe243307d37810a3e00 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 28 Nov 2024 15:53:20 +0200 Subject: [PATCH] Made changes to the home session --- .config/tmux/tmux.conf | 4 ++++ scripts/tmux-session-setup | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 1e79ec4..97044fa 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -21,6 +21,10 @@ bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel +# Avoid leaking sensitive windows due to preview by adding the N flag +bind-key s choose-tree -ZsN +bind-key w choose-tree -ZwN + set -g mouse on bind-key r source-file ~/.tmux.conf diff --git a/scripts/tmux-session-setup b/scripts/tmux-session-setup index be51ad6..97f79c3 100755 --- a/scripts/tmux-session-setup +++ b/scripts/tmux-session-setup @@ -6,6 +6,14 @@ dir=$2 if [ "$dir" = "$HOME" ]; then tmux rename-window -t $sess:1 main tmux send-keys -t $sess:main.1 "fastfetch" C-m + + tmux new-window -t $sess -n dotfiles -c $HOME/dotfiles + tmux send-keys -t $sess:dotfiles.1 "vim" C-m + + tmux new-window -t $sess -n diary -c $HOME/personal/dairy + tmux send-keys -t $sess:diary.1 "vim" C-m + + tmux select-window -t $sess:main elif [ "$sess" = "eko" ]; then tmux rename-window -t $sess:1 editor tmux send-keys -t $sess:editor.1 "vim" C-m