1
0
mirror of https://github.com/gryf/vmstrap.git synced 2025-12-31 11:02:35 +01:00

initial import

This commit is contained in:
2019-06-20 10:08:48 +02:00
commit f00401dba3
5 changed files with 361 additions and 0 deletions

101
.tmux.conf Normal file
View File

@@ -0,0 +1,101 @@
# gryf tmux setup
# Set the prefix to ^A.
unbind C-b
set -g prefix ^Q
bind q send-prefix
set -g default-terminal "screen-256color"
# I want xterm keys
set-window-option -g xterm-keys on
# fastest command sequences
set -s escape-time 0
# expect UTF-8
# set numbering from 1 instead 0
set -g base-index 1
set -g pane-base-index 1
# don't rename my tabs
set -g allow-rename off
# renumber windows when a window is closed
set -g renumber-windows on
#bind-key r source-file ~/.tmux.conf \; display "Config reloaded!"
set -g clock-mode-style 24
# toggle status line
bind-key -n C-Space set status
# Keep more lines than 2000
set -g history-limit 10000
# magic lines to make the less (PAGER) behavie
set -g terminal-overrides 'rxvt-unicode*:sitm@'
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
# set some nice colors, if switched on during runtime
setw -g window-status-current-bg colour8
setw -g window-status-current-fg colour15
setw -g window-status-current-attr bold
setw -g window-status-format '#I-#W#F'
setw -g window-status-current-format '#I-#W#F'
set -g status-bg black
set -g status-fg colour8
set -g pane-active-border-bg default
set -g message-fg white
set -g message-bg black
set -g pane-border-fg green
set -g pane-active-border-fg brightyellow
# try to show window title
set -g set-titles on
set -g set-titles-string 'TMUX - #S»#W»#T'
# track window activity
set-window-option -g monitor-activity on
set -g visual-activity off
# usefull bindings
bind-key -n C-F1 neww -n shell
bind-key -n C-F2 neww -n mc mc
bind-key -n C-F3 neww -n root 'su -'
bind-key -n C-F4 neww -n rss newsbeuter
bind-key -n C-F5 neww -n moc mocp
bind-key -n C-F6 neww -n ncmpc++ 'ncmpcpp --host pirania'
bind-key -n C-F7 neww -n htop htop
bind-key -n C-F8 neww -n gema 'ssh vimja'
bind-key -n C-F9 neww -n vaio 'ssh vaio'
bind-key -n C-F10 neww -n pirania 'ssh -X pirania'
bind-key -n C-F11 neww -n argh 'ssh argh'
bind a setw synchronize-panes
# move window
bind-key -n M-Left swap-window -t :-
bind-key -n M-Right swap-window -t :+
# move between windows
bind-key -n S-Right next-window
bind-key -n S-Left previous-window
# split windows like vim
bind-key s split-window -v
bind-key v split-window -h
# resize panes like vim
bind-key < resize-pane -L 3
bind-key > resize-pane -R 3
bind-key - resize-pane -D 3
bind-key + resize-pane -U 3
# vi-style controls for copy mode
set-window-option -g mode-keys vi
# v and y like vi in copy-mode
#bind-key -T copy-mode-vi 'v' send -X begin-selection
#bind-key -T copy-mode-vi 'y' send -X copy-selection
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection