✨ Create popups in tmux
This commit is contained in:
parent
26760280a3
commit
be336551e3
2 changed files with 48 additions and 0 deletions
|
@ -2973,6 +2973,17 @@
|
|||
<key>Version</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>0x49-0x120000-0x22</key>
|
||||
<dict>
|
||||
<key>Action</key>
|
||||
<integer>11</integer>
|
||||
<key>Label</key>
|
||||
<string></string>
|
||||
<key>Text</key>
|
||||
<string>0x01 0x49</string>
|
||||
<key>Version</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>0x68-0x100000-0x4</key>
|
||||
<dict>
|
||||
<key>Action</key>
|
||||
|
@ -3006,6 +3017,17 @@
|
|||
<key>Version</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>0x69-0x100000-0x22</key>
|
||||
<dict>
|
||||
<key>Action</key>
|
||||
<integer>11</integer>
|
||||
<key>Label</key>
|
||||
<string></string>
|
||||
<key>Text</key>
|
||||
<string>0x01 0x69</string>
|
||||
<key>Version</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>0x6a-0x100000-0x26</key>
|
||||
<dict>
|
||||
<key>Action</key>
|
||||
|
@ -3083,6 +3105,17 @@
|
|||
<key>Version</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>0x72-0x100000-0xf</key>
|
||||
<dict>
|
||||
<key>Action</key>
|
||||
<integer>11</integer>
|
||||
<key>Label</key>
|
||||
<string></string>
|
||||
<key>Text</key>
|
||||
<string>0x01 0x72</string>
|
||||
<key>Version</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>0x78-0x100000-0x7</key>
|
||||
<dict>
|
||||
<key>Action</key>
|
||||
|
|
|
@ -17,6 +17,9 @@ set -g base-index 1
|
|||
# Make pane index start at 1.
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# Automatically renumber windows when one is deleted.
|
||||
set -g renumber-windows on
|
||||
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
################################################################################
|
||||
|
@ -52,6 +55,18 @@ bind l resize-pane -R # cmd-l in iTerm2
|
|||
# Easy reload config.
|
||||
bind r source-file ~/.tmux.conf
|
||||
|
||||
# Popup.
|
||||
unbind i
|
||||
bind i if-shell -F '#{==:#{session_name},scratch}' { # cmd-i in iTerm2
|
||||
detach-client
|
||||
} {
|
||||
if-shell "tmux has-session -t scratch" {
|
||||
display-popup -E -h 90% -w 90% "tmux attach-session -t scratch"
|
||||
} {
|
||||
display-popup -E -h 90% -w 90% "tmux new-session -d -c '#{pane_current_path}' -s scratch && tmux set-option -t scratch status off && tmux attach-session -t scratch"
|
||||
}
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Catppuccin #
|
||||
################################################################################
|
||||
|
|
Loading…
Reference in a new issue