Thanks Martin and Nathan (everyone else from the TMux list,
scroll down to read their solutions for the question).
I decided to use my window manager and create a script
to tile my terminals (tabbed) on login. It's actually working
really well (after a lot of tweaking the window placement).
The "modular" approach turns out to be far more flexible
than TMux's "ice block of terminals overtaking the whole screen"
approach. Having tabbed terminals also vastly reduces the screen
real-estate required to meaningfully see everything at a glance.
I'd imagine that cutting out the "TMux middleman" probably
streamlines moment-to-moment memory usage as well.
i3 was Dependency Hell, sadly, due to Harfbuzz (the last piece
that refused to install and finally awoke me to the fact that DepHell
was nearly at hand). It does look fairly amazing, though, so one day
I'll be sure to give i3 another shot (if only for the sake of having done so).
Maybe by then they'll have sorted out the deps and smoothed
the install process a bit more.
-Original Message-
From: m...@archlinux.us
Sent: Mon, 19 Jan 2015 11:12:30 -0300
To: kario...@inbox.com
Subject: Re: Tabbed Terminals in TMux?
Hey Kario,
Busy day here so TL;DR (perhaps later), check this conf.:
~ > cat .tmux.conf
# Let's get some fresh FISH
set-option -g default-shell "/usr/bin/fish"
# Change binding key
unbind C-b
set -g prefix C-v
set -s escape-time 1
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Make main tmux window use the whole screen no matter from where you are
attaching to it
setw -g aggressive-resize on
# use UTF8
set -g utf8
set-window-option -g utf8 on
set-option -g status-utf8 on
set -g history-limit 2
set -g aggressive-resize on
# Let's make Weechat stop complaining about tmux running inside
rxvt-unicode-256color
set -g default-terminal "screen-256color"
# highlight status bar on activity
set-window-option -g monitor-activity on
set-option -g visual-activity off
# status bar
set-option -g status on
set -g status-bg black
set -g status-fg white
set-option -g visual-bell off
set -g status-utf8 on
set-option -g status-utf8 on
# automatically set window title
setw -g automatic-rename on
# windows titles on the statys bar
set-option -g set-titles on
set-option -g set-titles-string '#T [#S:#I #H] #W'
# Easy Windows (Tabs) moving
#This don't works with urxvt
#bind-key -n C-S-Left swap-window -t -1
#bind-key -n C-S-Right swap-window -t +1
# Set the color of the window list
#setw -g window-status-fg colour50 ## Light-blue (light)
setw -g window-status-fg colour123 ## Cyan (light)
# Set status bar transparent or coloured for better contrast
set -g status-bg default
#set -g status-bg colour233
# set colors for the active window
setw -g window-status-current-fg colour15
setw -g window-status-current-bg colour197
setw -g window-status-current-attr bright
# pane colors
set -g pane-border-fg colour245
set -g pane-active-border-fg colour210
# Command / message line
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# Update the status bar every five seconds
set -g status-interval 5
# center align window list
set-option -g status-justify left
# Define left and right wings
## White colour255 Grey colour245
set -g status-left-length 32
set -g status-right-length 90
set-option -g status-left "#[fg=default]#(tmux display-message -p '#S')
#[fg=colour255]|"
set-option -g status-right "#[fg=default]#(cut -d ' ' -f 1-3 /proc/loadavg)
#[fg=colour255] • #[fg=default]#(cat /sys/class/power_supply/BAT0/capacity)%
#[fg=colour255] • #[fg=default]#(date +%a), #(date +%b) #(date +%d)
#[fg=colour46]#(date +%R)"
# resize panes like vim
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
## Join windows: s, j
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
# tmux status bar messages last only about a second (default value is: 750ms)
set-option -g display-time 7000
# Move on split windows
bind -n C-Left selectp -L
#bind -n C-h select-pane -L
bind -n C-Down selectp -D
#bind -n C-j select-pane -D
bind -n C-Up selectp -U
#bind -n C-k select-pane -U
bind -n C-Right selectp -R
#bind -n C-l select-pane -R
# As urxvt-tabbed
bind -n S-Down new-window
bind -n S-Uplast-window
bind -n S-Left previous-window
bind -n S-Right next-window
#bind -n M-"[" copy-mode
#bind -n M-"]" paste-buffer
#bind -n M-'=' choose-buffer
#bind -n M-Kconfirm-before kill-pane
#bind -n M-"'" confirm-before kill-session
# quick view of processes
bind '~' split-window "exec htop"
bind 'F1' split-window 'exec watch -n2 "dmesg | tail -f"'
bind 'F2' split-window 'exec watch -n1 "who -uH"'
bind 'F3' split-window 'exec watch -n2 "route -n"'
bind 'F2' split-window 'exec watch -n2 "ip addr show"'
bind 'F4' split-window 'exec watch -n2 "route -n"'
bind 'F5