blob: 2267017e09cef20faae5ba445060f935dcc62098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# quickly apply config changes: <prefix>r
unbind r
bind r source-file ~/.config/tmux/tmux.conf
set -g mouse on
# allows to use vim bindings in scroll mode - key [
set-window-option -g mode-keys vi
# reassign leader key to C-f
set -g prefix C-f
unbind-key C-b
bind-key C-f send-prefix
# switch between panes using vim binds
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# highlight current window in status bar
set-window-option -g window-status-current-style 'bg=brightwhite'
set-window-option -g window-status-current-format ' #I:#W '
# open pane splits at the same path as current pane
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
set-window-option -g status-right "%H:%M %d-%b-%y #(upower -i /org/freedesktop/UPower/devices/DisplayDevice | awk '/percentage:/ {print \$2}' | bash -c 'read s; printf \"%.0f%%%%\" \"\${s%%%}\"') "
|