adding in polybar
This commit is contained in:
+29
@@ -1,3 +1,4 @@
|
||||
|
||||
# change prefix to Ctrl+a
|
||||
unbind C-b
|
||||
set -g prefix C-a
|
||||
@@ -78,3 +79,31 @@ unbind -T copy-mode-vi Enter
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c"
|
||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
|
||||
|
||||
|
||||
|
||||
# ----------------------
|
||||
# Status Bar
|
||||
# -----------------------
|
||||
set-option -g status on # turn the status bar on
|
||||
set -g status-interval 5 # set update frequencey (default 15 seconds)
|
||||
set -g status-justify centre # center window list for clarity
|
||||
# set-option -g status-position top # position the status bar at top of screen
|
||||
|
||||
# visual notification of activity in other windows
|
||||
setw -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
|
||||
# set color for status bar
|
||||
set-option -g status-bg colour235 #base02
|
||||
set-option -g status-fg yellow #yellow
|
||||
|
||||
# show host name and IP address on left side of status bar
|
||||
set -g status-left-length 85
|
||||
set -g status-left "#{?client_prefix,#[reverse]<Prefix>#[noreverse] ,} #[fg=colour198]: #h : #[fg=brightblue]#(curl icanhazip.com) #(ifconfig en0 | grep 'inet ' | awk '{print \"en0 \" $2}') #(ifconfig en1 | grep 'inet ' | awk '{print \"en1 \" $2}') #(ifconfig en3 | grep 'inet ' | awk '{print \"en3 \" $2}') #(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') "
|
||||
|
||||
# show session name, window & pane number, date and time on right side of
|
||||
# status bar
|
||||
set -g status-right-length 60
|
||||
set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]: %d %b %Y #[fg=green]: %l:%M %p : #(date -u | awk '{print $4}') :"
|
||||
set -g status-right "#[fg=blue]#(tmux-cpu --no-color)"
|
||||
|
||||
Reference in New Issue
Block a user