remove statuscmd from powerline as it doesn't work well at all
This commit is contained in:
parent
9b4d46d315
commit
ca564d88a0
|
@ -4,33 +4,9 @@ click_status_pwl(Bar *bar, Arg *arg, BarClickArg *a)
|
|||
if (selmon->hidestatus) {
|
||||
return 0;
|
||||
} else {
|
||||
return click_status_text(arg, a->rel_x, rawstext);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
click_status_text_pwl(Arg *arg, int rel_x, char *text)
|
||||
{
|
||||
int i = -1;
|
||||
int x = 0;
|
||||
char ch;
|
||||
clickstatusn = 0;
|
||||
while (text[++i]) {
|
||||
if ((unsigned char)text[i] < ' ') {
|
||||
ch = text[i];
|
||||
text[i] = '\0';
|
||||
x += textlength(text);
|
||||
text[i] = ch;
|
||||
text += i+1;
|
||||
i = -1;
|
||||
if (x >= rel_x)
|
||||
break;
|
||||
if (ch <= LENGTH(clickstatuss))
|
||||
clickstatusn = ch;
|
||||
}
|
||||
}
|
||||
return ClkStatusText;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
width_status_pwl(Bar *bar, BarWidthArg *a)
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
static int width_status_pwl(Bar *bar, BarWidthArg *a);
|
||||
static int draw_status_pwl(Bar *bar, BarDrawArg *a);
|
||||
static int click_status_pwl(Bar *bar, Arg *arg, BarClickArg *a);
|
||||
static int click_status_text_pwl(Arg *arg, int rel_x, char *text);
|
||||
static int drawpowerlinestatus(int x, char *stext);
|
||||
static int widthpowerlinestatus(char *stext);
|
||||
|
|
Loading…
Reference in a new issue