]>
Commit | Line | Data |
---|---|---|
25c3fb22 BB |
1 | #!/usr/bin/env bash |
2 | #Print the status-left for tmux. | |
3 | # | |
4 | # The powerline root directory. | |
5 | cwd=$(dirname $0) | |
6 | ||
7 | # Source global configurations. | |
8 | source "${cwd}/config.sh" | |
9 | ||
10 | # Source lib functions. | |
11 | source "${cwd}/lib.sh" | |
12 | ||
13 | segments_path="${cwd}/${segments_dir}" | |
14 | ||
15 | # Mute this statusbar? | |
16 | mute_status_check "left" | |
17 | ||
18 | # Segments | |
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" | |
26 | ||
27 | declare -A hostname | |
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" | |
33 | ||
34 | declare -A lan_ip | |
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" | |
40 | ||
41 | declare -A vcs_branch | |
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" | |
47 | ||
48 | # Print the status line in the order of registration above. | |
49 | print_status_line_left | |
50 | ||
51 | exit 0 |