F12 now disables outer tmux, allows for nesting + colors are not hardcoded

This commit is contained in:
2024-04-13 02:18:13 +02:00
parent e5678437e8
commit 0ec44b1306
2 changed files with 50 additions and 33 deletions

View File

@@ -30,5 +30,18 @@ bind -n C-M-h swap-window -t -1 \; prev
# Keybind for reloading config
bind r source-file $DOTFILES/tmux/dot-tmux.conf \; display-message "Config reloaded..."
bind -T root F12 \
set prefix None \;\
set key-table off \;\
if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
refresh-client -S \;\
bind -T off F12 \
set -u prefix \;\
set -u key-table \;\
refresh-client -S
wg_is_keys_off="#([ $(tmux show-option -qv key-table) = 'off' ] && echo 'TRUE' )"
# Load theme
source-file "$DOTFILES/tmux/gruvbox.conf"