From 072ffe6cebb010308e9b0ccbb80cb56151096281 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 12 Feb 2020 10:58:26 +0100 Subject: [PATCH] tmux: remove battery, hide status by default --- .tmux.conf | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 1a96be5..907b48e 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -4,7 +4,7 @@ set -g base-index 1 set -g display-panes-time 3000 #set -s escape-time 7 set -s escape-time 10 -set -g status on +set -g status off set -g status-interval 30 set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC" set -g terminal-overrides ",*:colors=256:smso=\e[3m:rmso=\e[23m:sitm=\e[3m:ritm=\e[23m" @@ -17,13 +17,10 @@ set -g default-terminal "xterm-256color" set -g set-clipboard on bind-key ] paste-buffer -p - - set-option -g mouse on #bind -n WheelUpPane copy-mode set -g update-environment "XAUTHORITY DISPLAY WINDOWID SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION SWAYSOCK" -setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock set -g default-command zsh #set -g mouse-select-pane on set -g history-limit 50000 @@ -99,9 +96,7 @@ setw -g window-status-separator "" set -g status-fg "#B0BEC5" set -g status-bg "#37474F" set -g status-left '#[bg=#335566,fg=#1a2a3a] #I #[default] ' -# set -g status-right '#[fg=#666666]|#[bg=#222222,fg=#99cc99] #{?#(tmux show-buffer -b project),#(tmux show-buffer -b project),-} #[bg=#222222,fg=#666666]| #{battery_percentage} #{battery_remain} |  %a %h-%d %H:%M | #(date +"%R") ' - -set -g status-right '#{battery_icon} #{battery_percentage} %a %h-%d %H:%M ' +set -g status-right '#H ' # Startup @@ -117,13 +112,4 @@ neww -d 'exec zsh' neww -d 'exec zsh' selectw -t 1 -run-shell ~/.tmux/plugins/tmux-battery/battery.tmux - -# source /usr/lib/python3.6/site-packages/powerline/bindings/tmux/powerline.conf -# -# if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on" -# set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"' -# set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"' - -#set-hook -g session-window-changed 'if -F "#{==:#{window_index},1}" "set -g status off" "set -g status on"' # vim:set ft=tmux: