Forked from samoshkin/toggle_keybindings.tmux.conf
          
        
    
          Created
          September 17, 2020 08:10 
        
      - 
      
- 
        Save penn201500/a78b575b6fcd0d5aba4e06a1ee642dc9 to your computer and use it in GitHub Desktop. 
    tmux.conf excerpt to toggle on/off session keybindings and prefix handling
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | bind -T root F12 \ | |
| set prefix None \;\ | |
| set key-table off \;\ | |
| set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\ | |
| set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\ | |
| set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\ | |
| if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\ | |
| refresh-client -S \;\ | |
| bind -T off F12 \ | |
| set -u prefix \;\ | |
| set -u key-table \;\ | |
| set -u status-style \;\ | |
| set -u window-status-current-style \;\ | |
| set -u window-status-current-format \;\ | |
| refresh-client -S | |
| wg_is_keys_off="#[fg=$color_light,bg=$color_window_off_indicator]#([ $(tmux show-option -qv key-table) = 'off' ] && echo 'OFF')#[default]" | |
| set -g status-right "$wg_is_keys_off #{sysstat_cpu} | #{sysstat_mem} | #{sysstat_loadavg} | $wg_user_host" | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment