Compare commits
5 commits
2bb33e142f
...
7b77f3bc3b
Author | SHA1 | Date | |
---|---|---|---|
|
7b77f3bc3b | ||
|
16b4ce21ea | ||
|
bb24e7600f | ||
|
eb61cfe62e | ||
|
e3341005a7 |
2 changed files with 166 additions and 0 deletions
83
.tmux.conf
Normal file
83
.tmux.conf
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
### keybindings
|
||||||
|
# C-b is not acceptable -- Vim uses it
|
||||||
|
set-option -g prefix C-a
|
||||||
|
bind-key C-a last-window
|
||||||
|
|
||||||
|
# Start numbering at 1
|
||||||
|
set -g base-index 1
|
||||||
|
|
||||||
|
# Allows for faster key repetition
|
||||||
|
set -s escape-time 0
|
||||||
|
|
||||||
|
# Rather than constraining window size to the maximum size of any client
|
||||||
|
# connected to the *session*, constrain window size to the maximum size of any
|
||||||
|
# client connected to *that window*. Much more reasonable.
|
||||||
|
setw -g aggressive-resize on
|
||||||
|
|
||||||
|
# Allows us to use C-a a <command> to send commands to a TMUX session inside
|
||||||
|
# another TMUX session
|
||||||
|
bind-key a send-prefix
|
||||||
|
|
||||||
|
# Activity monitoring
|
||||||
|
setw -g monitor-activity on
|
||||||
|
set -g visual-activity on
|
||||||
|
|
||||||
|
# Vi copypaste mode
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
|
|
||||||
|
|
||||||
|
# set to main-horizontal, 60% height for main pane
|
||||||
|
bind m set-window-option main-pane-height 60\; select-layout main-horizontal
|
||||||
|
|
||||||
|
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
|
||||||
|
|
||||||
|
# reload config
|
||||||
|
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
||||||
|
|
||||||
|
# set window split
|
||||||
|
bind-key v split-window -h
|
||||||
|
bind-key b split-window
|
||||||
|
|
||||||
|
# auto window rename
|
||||||
|
set-window-option -g automatic-rename
|
||||||
|
|
||||||
|
set -g status-interval 2
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# new theme
|
||||||
|
set-window-option -g status-style bg=colour236,fg=white
|
||||||
|
# left
|
||||||
|
set-window-option -g status-left "#[bg=colour240,fg=white] #S #[fg=colour236,reverse]"
|
||||||
|
set-window-option -g status-left-length 40
|
||||||
|
# right
|
||||||
|
set-window-option -g status-right "#[fg=black,bg=colour208]#(uptime -p |sed 's/\ week/w/; s/\ day/d/; s/\ hour/h/; s/\ minute/m/; s/s//g; s/,//g; s/up//') #[bg=colour236,fg=white] #(tmux-mem-cpu-load --colors --interval 2) #[fg=colour252]#[fg=black,bg=colour252,nobold] %Y-%m-%d #[bold]%H:%M #[fg=colour231,bg=colour240] #H "
|
||||||
|
set-window-option -g status-right-length 100
|
||||||
|
|
||||||
|
# Status bar window currently active
|
||||||
|
set-window-option -g window-status-current-format " #I #[default]#[fg=black,bg=colour123,nobold] #W #[fg=colour236,reverse]"
|
||||||
|
|
||||||
|
# Status bar window in background (not active)
|
||||||
|
set-window-option -g window-status-format " #I #[default]#[fg=colour231,bg=colour240,nobold] #W #[fg=colour236,reverse]"
|
||||||
|
|
||||||
|
# normal windows
|
||||||
|
# Black on green
|
||||||
|
set-window-option -g window-status-style none,bg=colour76,fg=black,nobold
|
||||||
|
|
||||||
|
# current window
|
||||||
|
#
|
||||||
|
set-window-option -g window-status-current-style none,bg=colour33,fg=black,bold
|
||||||
|
|
||||||
|
#
|
||||||
|
# last active
|
||||||
|
# cyan
|
||||||
|
set-window-option -g window-status-last-style none,bg=cyan,fg=black,bold
|
||||||
|
|
||||||
|
#
|
||||||
|
# activity/silence (monitor-activity, monitor-silence)
|
||||||
|
# pink
|
||||||
|
set-window-option -g window-status-activity-style bold,bg=colour127,fg=white
|
||||||
|
|
||||||
|
#
|
||||||
|
# bell triggered
|
||||||
|
# red is urgent
|
||||||
|
set-window-option -g window-status-bell-style bold,bg=red,fg=black
|
83
tmux.conf-without-dependencies
Normal file
83
tmux.conf-without-dependencies
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
# C-b is not acceptable -- Vim uses it
|
||||||
|
set-option -g prefix C-a
|
||||||
|
bind-key C-a last-window
|
||||||
|
|
||||||
|
# Start numbering at 1
|
||||||
|
set -g base-index 1
|
||||||
|
|
||||||
|
# Allows for faster key repetition
|
||||||
|
set -s escape-time 0
|
||||||
|
|
||||||
|
# Rather than constraining window size to the maximum size of any client
|
||||||
|
# connected to the *session*, constrain window size to the maximum size of any
|
||||||
|
# client connected to *that window*. Much more reasonable.
|
||||||
|
setw -g aggressive-resize on
|
||||||
|
|
||||||
|
# Allows us to use C-a a <command> to send commands to a TMUX session inside
|
||||||
|
# another TMUX session
|
||||||
|
bind-key a send-prefix
|
||||||
|
|
||||||
|
# Activity monitoring
|
||||||
|
setw -g monitor-activity on
|
||||||
|
set -g visual-activity on
|
||||||
|
|
||||||
|
# Vi copypaste mode
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
|
|
||||||
|
|
||||||
|
# set to main-horizontal, 60% height for main pane
|
||||||
|
bind m set-window-option main-pane-height 60\; select-layout main-horizontal
|
||||||
|
|
||||||
|
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
|
||||||
|
|
||||||
|
# reload config
|
||||||
|
bind r source-file "/root/.tmux.conf_sschiller" \; display-message "Config reloaded..."
|
||||||
|
|
||||||
|
# set window split
|
||||||
|
bind-key v split-window -h
|
||||||
|
bind-key b split-window
|
||||||
|
|
||||||
|
# auto window rename
|
||||||
|
set-window-option -g automatic-rename
|
||||||
|
|
||||||
|
set -g status-interval 2
|
||||||
|
|
||||||
|
# new theme
|
||||||
|
|
||||||
|
|
||||||
|
set-window-option -g status-style bg=colour236,fg=white
|
||||||
|
# left
|
||||||
|
set-window-option -g status-left "#[bg=colour240,fg=white] #S #[fg=colour236,reverse]"
|
||||||
|
set-window-option -g status-left-length 40
|
||||||
|
# right
|
||||||
|
set-window-option -g status-right "#[fg=black,bg=colour208]#(uptime -p |sed 's/\ week/w/; s/\ day/d/; s/\ hour/h/; s/\ minute/m/; s/s//g; s/,//g; s/up//') #[bg=colour236,fg=white] #(cat /proc/loadavg | awk '{print $1,$2,$3}') #[fg=colour252]#[fg=black,bg=colour252,nobold] %Y-%m-%d #[bold]%H:%M #[fg=colour231,bg=colour240] #H "
|
||||||
|
set-window-option -g status-right-length 80
|
||||||
|
|
||||||
|
# Status bar window currently active
|
||||||
|
set-window-option -g window-status-current-format " #I #[default]#[fg=black,bg=colour123,nobold] #W #[fg=colour236,reverse]"
|
||||||
|
|
||||||
|
# Status bar window in background (not active)
|
||||||
|
set-window-option -g window-status-format " #I #[default]#[fg=colour231,bg=colour240,nobold] #W #[fg=colour236,reverse]"
|
||||||
|
|
||||||
|
# normal windows
|
||||||
|
# Black on green
|
||||||
|
set-window-option -g window-status-style none,bg=colour76,fg=black,nobold
|
||||||
|
|
||||||
|
# current window
|
||||||
|
#
|
||||||
|
set-window-option -g window-status-current-style none,bg=colour33,fg=black,bold
|
||||||
|
|
||||||
|
#
|
||||||
|
# last active
|
||||||
|
# cyan
|
||||||
|
set-window-option -g window-status-last-style none,bg=cyan,fg=black,bold
|
||||||
|
|
||||||
|
#
|
||||||
|
# activity/silence (monitor-activity, monitor-silence)
|
||||||
|
# pink
|
||||||
|
set-window-option -g window-status-activity-style bold,bg=colour127,fg=white
|
||||||
|
|
||||||
|
#
|
||||||
|
# bell triggered
|
||||||
|
# red is urgent
|
||||||
|
set-window-option -g window-status-bell-style bold,bg=red,fg=black
|
Loading…
Reference in a new issue