diff options
| author | Ben Beltran <ben@freshout.us> | 2012-10-22 10:34:38 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@freshout.us> | 2012-10-22 10:34:38 -0500 |
| commit | 25c3fb22714ee393b4fe72c92269d732b9102268 (patch) | |
| tree | 8098175c469a4069de86eedc03a71e71b871a9a2 /status-left.sh | |
| parent | dad273561595c4c88d73bd2e3fb8acadbf17090c (diff) | |
Adds the custom status for tmux
Diffstat (limited to 'status-left.sh')
| -rwxr-xr-x | status-left.sh | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/status-left.sh b/status-left.sh new file mode 100755 index 0000000..21727cf --- /dev/null +++ b/status-left.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash +#Print the status-left for tmux. +# +# The powerline root directory. +cwd=$(dirname $0) + +# Source global configurations. +source "${cwd}/config.sh" + +# Source lib functions. +source "${cwd}/lib.sh" + +segments_path="${cwd}/${segments_dir}" + +# Mute this statusbar? +mute_status_check "left" + +# Segments +declare -A tmux_session_info +tmux_session_info+=(["script"]="${segments_path}/tmux_session_info.sh") +tmux_session_info+=(["foreground"]="colour7") +tmux_session_info+=(["background"]="colour12") +tmux_session_info+=(["separator"]="${separator_right_bold}") +#tmux_session_info+=(["separator_fg"]="default") +register_segment "tmux_session_info" + +declare -A hostname +hostname+=(["script"]="${segments_path}/hostname.sh") +hostname+=(["foreground"]="colour7") +hostname+=(["background"]="colour1") +hostname+=(["separator"]="${separator_right_bold}") +register_segment "hostname" + +declare -A lan_ip +lan_ip+=(["script"]="${segments_path}/lan_ip.sh") +lan_ip+=(["foreground"]="colour7") +lan_ip+=(["background"]="colour24") +lan_ip+=(["separator"]="${separator_right_bold}") +#register_segment "lan_ip" + +declare -A vcs_branch +vcs_branch+=(["script"]="${segments_path}/vcs_branch.sh") +vcs_branch+=(["foreground"]="colour12") +vcs_branch+=(["background"]="colour7") +vcs_branch+=(["separator"]="${separator_right_bold}") +register_segment "vcs_branch" + +# Print the status line in the order of registration above. +print_status_line_left + +exit 0 |