Skip to content

Instantly share code, notes, and snippets.

@nishantjr
Forked from anonymous/i3-config
Last active August 29, 2015 14:05
Show Gist options
  • Save nishantjr/99c64b91c7e118ee5e61 to your computer and use it in GitHub Desktop.
Save nishantjr/99c64b91c7e118ee5e61 to your computer and use it in GitHub Desktop.
mode "curses" {
bindsym F3 mode "default"
bindsym Escape mode "default"
}
mode "default" {
bindsym F1 exec njr-browser
bindsym F2 exec i3-sensible-terminal
bindsym F3 mode "curses"
bindsym F12 exec njr-backlight
}
diff --git a/src/config_directives.c b/src/config_directives.c
index e45db0e..8191fb5 100644
--- a/src/config_directives.c
+++ b/src/config_directives.c
@@ -186,10 +186,6 @@ CFGFUN(mode_binding, const char *bindtype, const char *modifiers, const char *ke
}
CFGFUN(enter_mode, const char *modename) {
- if (strcasecmp(modename, DEFAULT_BINDING_MODE) == 0) {
- ELOG("You cannot use the name %s for your mode\n", DEFAULT_BINDING_MODE);
- exit(1);
- }
DLOG("\t now in mode %s\n", modename);
FREE(current_mode);
current_mode = sstrdup(modename);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment