@@ 14,11 14,13 @@
enum {
DEFAULT,
BLUE,
+ MAGENTA
};
static Color colors[] = {
- [DEFAULT] = { .fg = -1, .bg = -1, .fg256 = -1, .bg256 = -1, },
- [BLUE] = { .fg = COLOR_BLUE, .bg = -1, .fg256 = 68, .bg256 = -1, },
+ [DEFAULT] = { .fg = -1, .bg = -1, .fg256 = -1, .bg256 = -1,},
+ [BLUE] = { .fg = COLOR_BLUE, .bg = -1, .fg256 = 68, .bg256 = -1,},
+ [MAGENTA] = { .fg = COLOR_MAGENTA, .bg = -1, .fg256 = 91, .bg256 = -1,},
};
#define COLOR(c) COLOR_PAIR(colors[c].pair)
@@ 46,15 48,19 @@ static Color colors[] = {
/* printf format string for the tag in the status bar */
#define TAG_SYMBOL "[%s]"
/* curses attributes for the currently selected tags */
-#define TAG_SEL (COLOR(BLUE) | A_BOLD)
+#define TAG_SEL (COLOR(MAGENTA))
/* curses attributes for not selected tags which contain no windows */
#define TAG_NORMAL (COLOR(DEFAULT) | A_NORMAL)
/* curses attributes for not selected tags which contain windows */
#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" };
+const char tags[][8] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
#include "tile.c"
#include "grid.c"
@@ 140,6 146,10 @@ static KeyBinding bindings[] = {
TAGKEYS( '3', 2)
TAGKEYS( '4', 3)
TAGKEYS( '5', 4)
+ TAGKEYS( '6', 5)
+ TAGKEYS( '7', 6)
+ TAGKEYS( '8', 7)
+ TAGKEYS( '9', 8)
};
static const ColorRule colorrules[] = {