]>
git.r.bdr.sh - rbdr/dotfiles/blob - status-left.sh
2 #Print the status-left for tmux.
4 # The powerline root directory.
7 # Source global configurations.
8 source "${cwd}/config.sh"
10 # Source lib functions.
11 source "${cwd}/lib.sh"
13 segments_path
="${cwd}/${segments_dir}"
15 # Mute this statusbar?
16 mute_status_check
"left"
19 declare -A tmux_session_info
20 tmux_session_info
+=(["script"]="${segments_path}/tmux_session_info.sh")
21 tmux_session_info
+=(["foreground"]="colour7")
22 tmux_session_info
+=(["background"]="colour12")
23 tmux_session_info
+=(["separator"]="${separator_right_bold}")
24 #tmux_session_info+=(["separator_fg"]="default")
25 register_segment
"tmux_session_info"
28 hostname
+=(["script"]="${segments_path}/hostname.sh")
29 hostname
+=(["foreground"]="colour7")
30 hostname
+=(["background"]="colour1")
31 hostname
+=(["separator"]="${separator_right_bold}")
32 register_segment
"hostname"
35 lan_ip
+=(["script"]="${segments_path}/lan_ip.sh")
36 lan_ip
+=(["foreground"]="colour7")
37 lan_ip
+=(["background"]="colour24")
38 lan_ip
+=(["separator"]="${separator_right_bold}")
39 #register_segment "lan_ip"
42 vcs_branch
+=(["script"]="${segments_path}/vcs_branch.sh")
43 vcs_branch
+=(["foreground"]="colour12")
44 vcs_branch
+=(["background"]="colour7")
45 vcs_branch
+=(["separator"]="${separator_right_bold}")
46 register_segment
"vcs_branch"
48 # Print the status line in the order of registration above.
49 print_status_line_left