diff --git a/config.conf b/config.conf index e9863cd..97232b8 100644 --- a/config.conf +++ b/config.conf @@ -213,6 +213,25 @@ bind=Alt,KP_7,tag,7 bind=Alt,KP_8,tag,8 bind=Alt,KP_9,tag,9 +bind=Super,KP_1,toggletag,1 +bind=Super,KP_2,toggletag,2 +bind=Super,KP_3,toggletag,3 +bind=Super,KP_4,toggletag,4 +bind=Super,KP_5,toggletag,5 +bind=Super,KP_6,toggletag,6 +bind=Super,KP_7,toggletag,7 +bind=Super,KP_8,toggletag,8 +bind=Super,KP_9,toggletag,9 + +bind=Super+alt,KP_1,toggleview,1 +bind=Super+alt,KP_2,toggleview,2 +bind=Super+alt,KP_3,toggleview,3 +bind=Super+alt,KP_4,toggleview,4 +bind=Super+alt,KP_5,toggleview,5 +bind=Super+alt,KP_6,toggleview,6 +bind=Super+alt,KP_7,toggleview,7 +bind=Super+alt,KP_8,toggleview,8 +bind=Super+alt,KP_9,toggleview,9 # monitor switch bind=SUPER,bracketleft,focusmon,left diff --git a/parse_config.h b/parse_config.h index 5c76b8f..8731346 100644 --- a/parse_config.h +++ b/parse_config.h @@ -456,6 +456,12 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value) { } else if (strcmp(func_name, "view") == 0) { func = bind_to_view; (*arg).ui = 1 << (atoi(arg_value) - 1); + } else if (strcmp(func_name, "toggletag") == 0) { + func = toggletag; + (*arg).ui = 1 << (atoi(arg_value) - 1); + } else if (strcmp(func_name, "toggleview") == 0) { + func = toggleview; + (*arg).ui = 1 << (atoi(arg_value) - 1); } else { return NULL; }