@@ 55,6 55,10 @@ static Color colors[] = {
#define TAG_OCCUPIED (COLOR(BLUE) | A_NORMAL)
/* curses attributes for not selected tags which with urgent windows */
#define TAG_URGENT (COLOR(BLUE) | A_NORMAL | A_BLINK)
+/* Display keys of partially typed keycombo next to layout icon.
+ * Similar vim feature is called "showcmd".
+ */
+#define SHOW_COMBO true
const char tags[][8] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
@@ 355,7 355,7 @@ drawbar(void) {
addstr(layout->symbol);
attrset(TAG_NORMAL);
- if (keys) {
+ if (SHOW_COMBO && keys) {
unsigned int keycount = 0;
while (keycount < MAX_KEYS && keys[keycount]) {
if (keys[keycount] < ' ')