]> git.r.bdr.sh - rbdr/dotfiles/blame - status-left.sh
Adds vim-togglelist plugin
[rbdr/dotfiles] / status-left.sh
CommitLineData
25c3fb22
BB
1#!/usr/bin/env bash
2#Print the status-left for tmux.
3#
4# The powerline root directory.
5cwd=$(dirname $0)
6
7# Source global configurations.
8source "${cwd}/config.sh"
9
10# Source lib functions.
11source "${cwd}/lib.sh"
12
13segments_path="${cwd}/${segments_dir}"
14
15# Mute this statusbar?
16mute_status_check "left"
17
18# Segments
19declare -A tmux_session_info
20tmux_session_info+=(["script"]="${segments_path}/tmux_session_info.sh")
21tmux_session_info+=(["foreground"]="colour7")
22tmux_session_info+=(["background"]="colour12")
23tmux_session_info+=(["separator"]="${separator_right_bold}")
24#tmux_session_info+=(["separator_fg"]="default")
25register_segment "tmux_session_info"
26
27declare -A hostname
28hostname+=(["script"]="${segments_path}/hostname.sh")
29hostname+=(["foreground"]="colour7")
30hostname+=(["background"]="colour1")
31hostname+=(["separator"]="${separator_right_bold}")
32register_segment "hostname"
33
34declare -A lan_ip
35lan_ip+=(["script"]="${segments_path}/lan_ip.sh")
36lan_ip+=(["foreground"]="colour7")
37lan_ip+=(["background"]="colour24")
38lan_ip+=(["separator"]="${separator_right_bold}")
39#register_segment "lan_ip"
40
41declare -A vcs_branch
42vcs_branch+=(["script"]="${segments_path}/vcs_branch.sh")
43vcs_branch+=(["foreground"]="colour12")
44vcs_branch+=(["background"]="colour7")
45vcs_branch+=(["separator"]="${separator_right_bold}")
46register_segment "vcs_branch"
47
48# Print the status line in the order of registration above.
49print_status_line_left
50
51exit 0