-
-
Save nishantjr/99c64b91c7e118ee5e61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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