summaryrefslogtreecommitdiff
path: root/.config/tmux
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2026-04-17 23:18:26 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2026-04-17 23:18:26 +0200
commit9fd9e3aed77586c8aba2eb78c6faadc3d35680da (patch)
treea37f55fea74d5fe1711dd3a92a190ca2f22b4d94 /.config/tmux
parente2540b324853d00534e54754f85f67a336c16b2c (diff)
Update tmuxHEADmaster
Diffstat (limited to '.config/tmux')
-rw-r--r--.config/tmux/tmux.conf15
1 files changed, 9 insertions, 6 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index 875da08..6f5160a 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -22,12 +22,15 @@ set -g status-keys vi
# ─── Terminal / Colors ────────────────────────────────────────────────────────
-set -g default-terminal "${TERM}"
-set -ga terminal-overrides ',*256col*:Tc'
-set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
+set -g default-terminal "tmux-256color"
+set -as terminal-features ",st-256color:clipboard"
+set -ga terminal-overrides ",st-256color:bce"
+set -as terminal-overrides ",*:Tc"
# Undercurl
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
+set -g cursor-style block
+set -as terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
set -as terminal-overrides ',*:Setulc=\E[58::2::::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
# ─── Status Line ──────────────────────────────────────────────────────────────
@@ -95,12 +98,12 @@ bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -
# ─── Floating Terminal ────────────────────────────────────────────────────────
-bind-key -n -N 'Toggle popup window' M-g if-shell -F '#{m:popup-*,#{session_name}}' {
+bind-key -n -N 'Toggle popup window' M-g if-shell -F '#{==:#{session_name},popup}' {
detach-client
} {
display-popup -d "#{pane_current_path}" \
- -xC -yC -w 80% -h 75% \
- -E "~/.config/tmux/popup.sh"
+ -xC -yC -w 80% -h 75% \
+ -E 'tmux attach-session -t popup || tmux new-session -s popup'
}
# ─── Sesh ─────────────────────────────────────────────────────────────────────