Skip to content

Instantly share code, notes, and snippets.

@samoshkin
Last active August 8, 2025 07:36

Revisions

  1. samoshkin revised this gist Nov 25, 2017. No changes.
  2. samoshkin renamed this gist Nov 25, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. samoshkin revised this gist Nov 25, 2017. No changes.
  4. samoshkin revised this gist Nov 25, 2017. 2 changed files with 5 additions and 4 deletions.
    6 changes: 5 additions & 1 deletion tmux.conf
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,8 @@ bind -T off F12 \
    set -u status-style \;\
    set -u window-status-current-style \;\
    set -u window-status-current-format \;\
    refresh-client -S
    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"
    3 changes: 0 additions & 3 deletions wg_keys_off_status_line
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    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"
  5. samoshkin revised this gist Nov 25, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions wg_keys_off_status_line
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    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"
  6. samoshkin renamed this gist Nov 25, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. samoshkin renamed this gist Nov 25, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. samoshkin renamed this gist Nov 25, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  9. samoshkin renamed this gist Nov 25, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  10. samoshkin created this gist Nov 25, 2017.
    16 changes: 16 additions & 0 deletions tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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