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