add instantkeyswitch
@@ -156,6 +156,7 @@ static const char *langswitchcmd[] = {"ilayout", NULL};
static const char *oslockcmd[] = {"instantlock", "-o", NULL};
static const char *helpcmd[] = {"instanthotkeys", "gui", NULL};
static const char *searchcmd[] = {"instantsearch", NULL};
+static const char *keylayoutswitchcmd[] = {"instantkeyswitch", NULL};
static const char *iswitchcmd[] = {"iswitch", NULL};
static const char *instantswitchcmd[] = {"rofi", "-show", "window", "-kb-row-down", "Alt+Tab,Down", "-kb-row-up", "Alt+Ctrl+Tab,Up", "-kb-accept-entry", "!Alt_L,!Alt+Tab,Return", "-me-select-entry", "", "-me-accept-entry", "MousePrimary", NULL};
static const char *caretinstantswitchcmd[] = {"rofi", "-show", "window", "-kb-row-down", "Alt+Tab,Down", "-kb-row-up", "Alt+Ctrl+Tab,Up", "-kb-accept-entry", "!Alt_L,!Alt+Tab,Return", "-me-select-entry", "", "-me-accept-entry", "MousePrimary", "-theme", "/usr/share/instantdotfiles/rofi/appmenu.rasi", NULL};
@@ -327,6 +328,7 @@ static Key keys[] = {
{MODKEY|ShiftMask, XK_f, togglefakefullscreen, {0} },
{MODKEY|ControlMask, XK_f, tempfullscreen, {0} },
{MODKEY|Mod1Mask, XK_f, spawn, { .v = searchcmd } },
+ {MODKEY|Mod1Mask, XK_space, spawn, { .v = keylayoutswitchcmd } },
{MODKEY | ShiftMask | Mod1Mask, XK_d, toggledoubledraw, {0} },
{MODKEY|ShiftMask, XK_w, warpfocus, {0} },
{MODKEY|Mod1Mask, XK_w, centerwindow, {0} },
