summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-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 ─────────────────────────────────────────────────────────────────────