summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-28 15:53:20 +0200
committerKyren223 <Kyren223@proton.me>2024-11-28 15:53:20 +0200
commit0fd116d7a0e50dda2c226fe243307d37810a3e00 (patch)
treecd03b2699d50aac3d205093065efd1084de4c241
parentd709d2de54f5be174bebde60a10e0e3fc7b58b44 (diff)
Made changes to the home session
-rw-r--r--.config/tmux/tmux.conf4
-rwxr-xr-xscripts/tmux-session-setup8
2 files changed, 12 insertions, 0 deletions
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