yabar
yabar copied to clipboard
[featurerequest] prefix instead of internal prefix
could u replace internal-prefix with prefix.
currently i have to configure something like this to get my prefix:
ya_cpu: {
exec: "echo -n ' ' && cat /proc/loadavg| awk '{print $1}'";
type: "periodic";
align: "right";
fixed-size: 60;
interval: 1;
background-color-rgb:0x98D9B6;
underline-color-rgb:0xE97F02;
}
but i would prefer if i could use prefix for any type of block:
ya_cpu: {
exec: "cat /proc/loadavg| awk '{print $1}'";
type: "periodic";
align: "right";
fixed-size: 60;
interval: 1;
prefix: " ";
background-color-rgb:0x98D9B6;
underline-color-rgb:0xE97F02;
}
I really like the idea, but believe it or not, despite the simplicity of this request, this would require a considerable amount of change in the code due to mainly parsing dynamic colors at the beginning of the string. That was easy in internal blocks as they require only a shift in buffer pointer to after prefix position. I will keep this issue open, as I may think of a good and clean solution to this feature request, or maybe someone comes up with a solution.