File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class BitBarLine {
22
22
protected $ dropdown ;
23
23
protected $ trim = true ;
24
24
protected $ refresh = false ;
25
+ protected $ alternate = false ;
25
26
26
27
/**
27
28
* @param mixed $text
@@ -120,6 +121,16 @@ public function setRefresh($boolean) {
120
121
$ this ->refresh = (boolean ) $ boolean ;
121
122
return $ this ;
122
123
}
124
+
125
+
126
+ /**
127
+ * @param $boolean
128
+ * @return $this
129
+ */
130
+ public function setAlternate ($ boolean ) {
131
+ $ this ->alternate = (boolean ) $ boolean ;
132
+ return $ this ;
133
+ }
123
134
124
135
/**
125
136
* @return BitBarLine
@@ -171,6 +182,15 @@ public function format() {
171
182
172
183
$ string .= ' trim=false ' ;
173
184
}
185
+
186
+ if ($ this ->alternate === true ) {
187
+ if (!$ this ->usedPipe ) {
188
+ $ string .= '| ' ;
189
+ $ this ->usedPipe = true ;
190
+ }
191
+
192
+ $ string .= ' alternate=true ' ;
193
+ }
174
194
175
195
if ($ this ->bash ) {
176
196
if (!$ this ->usedPipe ) {
You can’t perform that action at this time.
0 commit comments