Created
January 12, 2019 10:12
-
-
Save lmorg/6a13b47180d23fd6b9b4759de0481431 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#my stuff | |
unbind C-b | |
#set -g prefix C-` | |
set-option -g prefix F2 | |
unbind % | |
bind + split-window -h | |
bind = split-window -h | |
bind - split-window -v | |
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." | |
###colours### | |
# Set status bar | |
set -g status-bg '#505050' | |
set -g status-bg colour0 | |
# | |
#set -g status-bg colour4 | |
#set -g status-bg colour3 | |
#set -g status-bg black | |
#set -g status-fg black | |
#set -g status-fg colour2 | |
#set -g status-bg '#ffffff' | |
#set -g status-fg '#202020' | |
set -g pane-active-border-bg default | |
set -g pane-active-border-fg '#B26818' | |
set -g pane-border-bg default | |
set -g pane-border-fg '#505050' | |
#set -g pane-border-bg '#ffffff' | |
#set -g pane-border-fg '#202020' | |
###### | |
###usabilities### | |
set -g mouse on | |
#set -g mouse off | |
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" | |
# pastes tmux buffer to X buffer | |
#setw -g mode-mouse off | |
bind-key y run-shell "tmux show-buffer | xclip -selection clipboard" | |
#bind-key m setw -g mode-mouse on \; set -g mouse-resize-pane on \; set -g mouse-select-pane on | |
#bind-key M setw -g mode-mouse off \; set -g mouse-resize-pane off \; set -g mouse-select-pane off | |
# vi keys and paste buffer | |
setw -g mode-keys vi | |
unbind [ | |
bind Escape copy-mode | |
unbind p | |
bind p paste-buffer | |
#bind-key -t vi-copy 'v' begin-selection | |
#bind-key -t vi-copy 'y' copy-selection | |
##url view from paste buffer | |
##bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; run-shell "$TERMINAL -e 'cat /tmp/tmux-buffer | urlview'" | |
#bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; run-shell "/bin/sh -c '/usr/bin/urlview /tmp/tmux-buffer'" | |
### instructs tmux to expect UTF-8 sequences | |
#setw -g utf8 on | |
#set -g status-utf8 on | |
#set-option -g terminal-overrides '*:enacs@:smacs@:rmacs@:acsc@' | |
#set -g default-terminal "xterm-256color" | |
set -g default-terminal "screen" | |
set-option -sa terminal-overrides ",xterm*:Tc" | |
#set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@" | |
setw -g automatic-rename on | |
#################################################### | |
### http://www.darkcoding.net/tmux/tmux.conf.txt ### | |
# History | |
set -g history-limit 1000 | |
# Terminal emulator window title | |
#set -g set-titles on | |
#set -g set-titles-string '#S:#I.#P #W' | |
#set -g status-interval 60 | |
#set -g status-left-length 30 | |
#set -g status-left '#[fg=colour237]#I:#P #[fg=white]#(whoami)@#H' | |
set -g status-justify left | |
set -g status-right-length 90 | |
#set -g status-right '#[fg=cyan]#(/usr/bin/gcalcli --nc --ignore-started agenda "$(date\)"| head -2 | tail -1) #[fg=green]#(/usr/bin/dstat --battery-remain --nocolor 1 0 | tail -1) #[fg=green]#(whoami)@#H #[fg=yellow]#(cut -d " " -f 1 /proc/loadavg) #[default]%a %d %b %R' | |
# Notifying if other windows has activities | |
#setw -g monitor-activity on | |
set -g visual-activity on | |
# Window status colors | |
setw -g window-status-bg black | |
setw -g window-status-fg colour248 | |
#setw -g window-status-alert-attr underscore | |
#setw -g window-status-alert-bg colour235 | |
#setw -g window-status-alert-fg colour248 | |
setw -g window-status-current-attr bright | |
setw -g window-status-current-bg colour235 | |
setw -g window-status-current-fg colour248 | |
# Clock | |
setw -g clock-mode-colour colour250 | |
setw -g clock-mode-style 24 | |
#################################################### | |
#################################################### | |
# Arqiva | |
set -sg escape-time 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment