remove statuscmd from powerline as it doesn't work well at all

This commit is contained in:
speedie 2022-12-05 21:16:32 +01:00
parent 9b4d46d315
commit ca564d88a0
2 changed files with 1 additions and 26 deletions

View file

@ -4,32 +4,8 @@ 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

View file

@ -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);