rc

yabar.conf

1
bar-list = ["topbar"];
2
3
topbar: {
4
    // List of all blocks
5
    block-list: ["workspaces", "space", "title", "space", "battery", "cpu", "memory", "network", "date"];
6
7
    // Font (considering using an Icon Font - like Material Icons)
8
    font: "FontAwesome 12";
9
    // Only on first monitor
10
    monitor: "eDP1";
11
12
    position: "top";
13
    height: 35;
14
15
    background-color-argb: 0xD0212121;
16
    // background-color-nowindow-argb: 0x00000000;
17
    underline-size: 6;
18
    overline-size: 0;
19
    slack-size: 0;
20
21
    workspaces: {
22
		// I'm not using YABAR_WORKSPACES, because it kinda breaks on i3.
23
        //exec: "i3-msg -t get_workspaces | jq '.[] | select(.focused).name'"
24
		// I'm assigning subject names to my workspaces, instead of ambiguous
25
		// symbols.
26
		exec: "YABAR_WORKSPACE";
27
		internal-option1: "COMPN Philosophy Physics OOP2 Math * Leisure"
28
29
        align: "left";
30
        justify: "center";
31
		// Type set to periodic, because Yabar is not smart enough to recognize
32
		// workspace switches.
33
        type: "persist";
34
        fixed-size: 100;
35
36
        background-color-rgb: 0xC62828;
37
        underline-color-rgb: 0xB71C1C;
38
39
        // underline-color-rgb: 0xC62828;
40
    }
41
42
    space: {
43
        exec: "echo";
44
45
        align: "left";
46
        fixed-size: 20;
47
		// Normally, this should be "once" and without interval, but when
48
		// leaving full screen things (like a movie on VLC), it stays black.
49
		// Remove when fixed.
50
        type: "periodic";
51
		interval: 10;
52
		
53
		background-color-rgb: 0x7B1FA2;
54
		underline-color-rgb: 0x4A148C
55
    }
56
    
57
    title: {
58
        exec: "YABAR_TITLE";
59
60
        align: "left";
61
        justify: "center";
62
        fixed-size: 640;
63
        type: "persist";
64
        variable-size: false;    // Save some space...;
65
		
66
		background-color-rgb: 0x7B1FA2;
67
		underline-color-rgb: 0x4A148C
68
    }
69
70
    battery: {
71
        exec: "YABAR_BATTERY";
72
        internal-option1: "BAT0";
73
        internal-option2: "        ";
74
        internal-suffix:  "%";
75
        internal-spacing: true;
76
77
        align: "right";
78
        fixed-size: 100;
79
        type: "periodic";
80
        interval: 5;
81
82
        background-color-rgb: 0x689F38;
83
        underline-color-rgb: 0x33691E;
84
    }
85
86
    cpu: {
87
        exec: "YABAR_CPU";
88
        internal-prefix: " ";
89
        internal-suffix: "%";
90
        internal-spacing: false;
91
92
        align: "right";
93
        fixed-size: 160;
94
        type: "periodic";
95
        interval: 2;
96
97
        background-color-rgb: 0xF57C00;
98
        underline-color-rgb: 0xEF6C00;
99
100
        // underline-color-rgb: 0xF57C00;
101
    }
102
103
    memory: {
104
        exec: "YABAR_MEMORY";
105
        internal-prefix: " ";
106
        internal-suffix: "B"; // Adds "B" to "M" to get "MB"
107
        internal-spacing: false;
108
109
        align: "right";
110
        fixed-size: 200;
111
        type: "periodic";
112
        interval: 1;
113
114
        background-color-rgb: 0xEF6C00;
115
        underline-color-rgb: 0xE65100;
116
117
        // underline-color-rgb: 0xEF6C00;
118
    }
119
120
    network: {
121
        exec: "YABAR_BANDWIDTH";
122
        internal-prefix: " ";
123
        internal-spacing: true;
124
        //internal-option1: "wlp58s0";
125
        internal-option1: "wlp2s0";
126
        internal-option2: " ";
127
128
        align: "right";
129
        fixed-size: 280;
130
        type: "periodic";
131
        interval: 1;
132
133
        background-color-rgb: 0x0097A7;
134
        underline-color-rgb: 0x00838F;
135
136
        // underline-color-rgb: 0x0097A7;
137
    }
138
139
    date: {
140
        exec: "YABAR_DATE";
141
        internal-option1: "%a %d %b, %I:%M:%S";
142
        internal-prefix: "  ";
143
144
        align: "right";
145
        fixed-size: 400;
146
        type: "periodic";
147
        interval: 1;
148
149
        background-color-rgb: 0x00838F;
150
        underline-color-rgb: 0x006064;
151
152
        // underline-color-rgb: 0x00838F;
153
    }
154
}