Merge pull request #2 from uwerler/colortabs

Colortabs
This commit is contained in:
Uwe Werler 2020-08-19 13:17:57 +00:00 committed by GitHub
commit c55c37e79b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -1,4 +1,5 @@
set -g prefix C-g
setw -g monitor-activity off
# needed for e.g. mutt
bind C-g send-prefix
@ -35,12 +36,6 @@ setw -g pane-active-border-style fg=colour240
set -g window-status-format " #I #{p15:pane_title} #{p2:window_flags}"
setw -g automatic-rename-format " #I #{p15:pane_title} #{p2:window_flags}"
set -g window-status-current-format " #I #{p15:pane_title} #{p2:window_flags}"
#set -g window-status-format " #I #{p15:pane_title} #{p2:?window_flags, #{window_flags}, }"
#setw -g automatic-rename-format " #I #{p15:pane_title} #{p2:?window_flags, #{window_flags}, }"
#set -g window-status-current-format " #I #{p15:pane_title} #{p2:?window_flags, #{window_flags}, }"
#set -g window-status-format " #I #{=+15:pane_title} #{=-2:?window_flags, #{window_flags}, }"
#setw -g automatic-rename-format " #I #{=+15:pane_title} #{=-2:?window_flags, #{window_flags}, }"
#set -g window-status-current-format " #I #{=+15:pane_title} #{=-2:?window_flags, #{window_flags}, }"
set -g pane-border-format " #P: #{s/ //:pane_title} "
set -g renumber-windows on
@ -48,7 +43,7 @@ set -g status-right-length 0
##############################################################
# I prefer not to have a status for my tabbed term
set -g status-right ""
set -g status-right '| #(test `apm -b` -lt 4 && echo "`apm -l`%% `test $(apm -m) != unknown && printf "%%02dh %%02dm \\n" "$(($(apm -m)/60)) $(($(apm -m)%%60))"`| ")%H:%M'
set -g status-right-length 0
set -g status-left-length 0
set -g status-left ""

2
ssh.sh
View File

@ -200,7 +200,7 @@ _ssh() {
_setpane ${_paneid} ${_host}
xterm -title ${_sess} -name ${_sess} -e \
xterm -maximized -title ${_sess} -name ${_sess} -e \
$_tmux attach -t ${_sess} 2>/dev/null &
#"xdotool key ctrl+alt+m; $_tmux attach -t ${_sess} 2>/dev/null" &
type xdotool && sleep 0.2 && xdotool key ctrl+alt+m