Configuring tmux (2)

Change your tmux apperance

also use the vim or your editor
$vim .tmux.conf
setting the window and panes index
set g base-index 1 將預設0改成1
setw g pane-base-index 1 

 

更改 horizontal vertical 的符號
bind | split-window h
bind – split-window v

將切換pane改成hjkl

bind h select-pane L
bind j select-pane D
bind k select-pane U
bind l select-pane R
this is my setting
===
106 set -g status-interval 1
107 #Update the status line every seconds
108 #mind that if u have shell command ,those will be executed once per interval
109 #so be careful not to load too many resource-intensive scripts.
110
111 set -g status-style fg=white,bg=colour235
112 #set the status line’s color
113 #這裡設定的是全部的預設值,如果其他設定值是default,那麼就會吃這裡的設定值
114
115 setw -g window-status-style fg=colour102,bg=default
116 #set the color of the window list
117 #設定 1 2 3 4 等等索引地方的顏色
118
119 setw -g window-status-current-style fg=red,bold,underscore,bg=default
120 #set colors for the active window
121 #設定當前激活的視窗索引的顏色與背景顏色
122
123 set -g status-left-length 80
124 set -g status-left ” #[fg=colour160]#S #[fg=colour209]視窗:#I #[fg=colour220]窗格:#P #[fg=colour34]#(ifconfig eno1 | grep ‘inet ‘ | awk ‘{print \” eno1 \” $2}’)#(ifconfig wlp2s0 | grep ‘inet ‘ | awk ‘{print \”wlp2s0 \” $2}’)”
125 # show the session name , window , pane , IP address
126 # ref: https://zanshin.net/2013/09/05/my-tmux-configuration/
127
128 set -g status-right-length 60
129 set -g status-right “#[fg=colour111]\”#H\” #[fg=colour82]%H:%M:%S #[fg=colour208]%m/%d %a #{cpu_fg_color}CPU:#{cpu_icon}#{cpu_percentage} #[fg=bla ck]#{battery_status_bg}Batt:#{battery_icon}#{battery_percentage} #(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep ‘time to empty’ | awk ‘{print $4 $5}’)#(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep ‘time to full’| awk ‘{print $4 $5}’)”
130 #Status line right side to show “ldv” 22:10:25 03/05 Mon CPU:= 4.42% Batt:🌖 53% 2.9 hours
131

(3)

Facebook Comments

發表迴響