Portál AbcLinuxu, 25. října 2025 19:57
set -g status-bg green
set -g status-right "%H:%M"
set -g window-status-current-attr "underscore"
# Change the prefix key to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# No bells at all
set -g bell-action none
# Lock after 15 minutes
#set -g lock-after-time 1800
# Keep windows around after they exit
set -g remain-on-exit on
# Turn on xterm-keys so that additional function keys get escape sequences
set -g xterm-keys on
# large history
set-option -g history-limit 10000
# load average, battery, and date + time
set -g status-right "#[fg=magenta] #(cat /proc/loadavg|awk '{print $3 \" \" $2 \" \" $3}')#(acpi|awk '{print $4;}') #[fg=cyan]%d-%m
# Turn the mouse on, but without copy mode dragging for tmux 2.1
#set -g mouse on
#unbind -n MouseDrag1Pane
#unbind -temacs-copy MouseDrag1Pane
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse-select-window on
set -g mouse-select-pane on
set -g mouse-resize-pane on
# Some extra key bindings to select higher numbered windows
bind F1 selectw -t:10
bind F2 selectw -t:11
bind F3 selectw -t:12
bind F4 selectw -t:13
bind F5 selectw -t:14
bind F6 selectw -t:15
bind F7 selectw -t:16
bind F8 selectw -t:17
bind F9 selectw -t:18
bind F10 selectw -t:19
bind F11 selectw -t:20
bind F12 selectw -t:21
# Keys to toggle monitoring activity in a window, and synchronize-panes
bind m set monitor-activity
bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'
# Keys to hide and show a window name from the status line
#bind '-' set window-status-format '#I'\; set window-status-current-format '#I'
#bind '+' set window-status-format '#I:#W#F'\; set window-status-current-format '#I:#W#F'
# Create a single default session
new -d -s0 -nirssi 'exec irssi'
set -t0:0 monitor-activity on
set -t0:0 aggressive-resize on
neww -d -ntodo 'exec emacs ~/TODO'
setw -t0:1 aggressive-resize on
neww -d -nmutt 'exec mutt'
setw -t0:2 aggressive-resize on
neww -d
Na otázku zatím nikdo bohužel neodpověděl.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.