accept ctrl as synonym of control (Thanks SardemFF7)
This commit is contained in:
parent
80492c8304
commit
00ac2c4c9c
|
@ -79,7 +79,7 @@ state FLOATING_MAXIMUM_SIZE_HEIGHT:
|
||||||
|
|
||||||
# floating_modifier <modifier>
|
# floating_modifier <modifier>
|
||||||
state FLOATING_MODIFIER:
|
state FLOATING_MODIFIER:
|
||||||
modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control'
|
modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control', 'Ctrl'
|
||||||
->
|
->
|
||||||
'+'
|
'+'
|
||||||
->
|
->
|
||||||
|
@ -269,7 +269,7 @@ state FONT:
|
||||||
|
|
||||||
# bindsym/bindcode
|
# bindsym/bindcode
|
||||||
state BINDING:
|
state BINDING:
|
||||||
modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control', 'Mode_switch'
|
modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control', 'Ctrl', 'Mode_switch'
|
||||||
->
|
->
|
||||||
'+'
|
'+'
|
||||||
->
|
->
|
||||||
|
@ -309,7 +309,7 @@ state MODE_IGNORE_LINE:
|
||||||
-> MODE
|
-> MODE
|
||||||
|
|
||||||
state MODE_BINDING:
|
state MODE_BINDING:
|
||||||
modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control', 'Mode_switch'
|
modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control', 'Ctrl', 'Mode_switch'
|
||||||
->
|
->
|
||||||
'+'
|
'+'
|
||||||
->
|
->
|
||||||
|
@ -371,7 +371,7 @@ state BAR_MODE:
|
||||||
-> call cfg_bar_mode($mode); BAR
|
-> call cfg_bar_mode($mode); BAR
|
||||||
|
|
||||||
state BAR_MODIFIER:
|
state BAR_MODIFIER:
|
||||||
modifier = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Control', 'Shift'
|
modifier = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Control', 'Ctrl', 'Shift'
|
||||||
-> call cfg_bar_modifier($modifier); BAR
|
-> call cfg_bar_modifier($modifier); BAR
|
||||||
|
|
||||||
state BAR_POSITION:
|
state BAR_POSITION:
|
||||||
|
|
|
@ -156,7 +156,8 @@ static uint32_t modifiers_from_str(const char *str) {
|
||||||
result |= BIND_MOD4;
|
result |= BIND_MOD4;
|
||||||
if (strstr(str, "Mod5") != NULL)
|
if (strstr(str, "Mod5") != NULL)
|
||||||
result |= BIND_MOD5;
|
result |= BIND_MOD5;
|
||||||
if (strstr(str, "Control") != NULL)
|
if (strstr(str, "Control") != NULL ||
|
||||||
|
strstr(str, "Ctrl") != NULL)
|
||||||
result |= BIND_CONTROL;
|
result |= BIND_CONTROL;
|
||||||
if (strstr(str, "Shift") != NULL)
|
if (strstr(str, "Shift") != NULL)
|
||||||
result |= BIND_SHIFT;
|
result |= BIND_SHIFT;
|
||||||
|
@ -469,7 +470,8 @@ CFGFUN(bar_modifier, const char *modifier) {
|
||||||
current_bar.modifier = M_MOD4;
|
current_bar.modifier = M_MOD4;
|
||||||
else if (strcmp(modifier, "Mod5") == 0)
|
else if (strcmp(modifier, "Mod5") == 0)
|
||||||
current_bar.modifier = M_MOD5;
|
current_bar.modifier = M_MOD5;
|
||||||
else if (strcmp(modifier, "Control") == 0)
|
else if (strcmp(modifier, "Control") == 0 ||
|
||||||
|
strcmp(modifier, "Ctrl") == 0)
|
||||||
current_bar.modifier = M_CONTROL;
|
current_bar.modifier = M_CONTROL;
|
||||||
else if (strcmp(modifier, "Shift") == 0)
|
else if (strcmp(modifier, "Shift") == 0)
|
||||||
current_bar.modifier = M_SHIFT;
|
current_bar.modifier = M_SHIFT;
|
||||||
|
|
Loading…
Reference in New Issue