Updates to button actions

This commit is contained in:
Mahesh Asolkar 2024-12-15 12:33:51 -08:00
parent ea953a7269
commit b751362b16

View File

@ -59,7 +59,7 @@ static const struct xkb_rule_names xkb_rules = {
/* example: /* example:
.options = "ctrl:nocaps", .options = "ctrl:nocaps",
*/ */
.options = "caps:none", .options = "caps:none,compose:rctrl",
}; };
static const int repeat_rate = 25; static const int repeat_rate = 25;
@ -198,9 +198,19 @@ static const Key keys[] = {
{ MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT, XKB_KEY_Q, quit, {0} }, { MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT, XKB_KEY_Q, quit, {0} },
{ MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT, XKB_KEY_L, spawn, {.v = lockcmd} }, { MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT, XKB_KEY_L, spawn, {.v = lockcmd} },
{ WLR_MODIFIER_LOGO, XKB_KEY_l, spawn, {.v = lockcmd } }, { WLR_MODIFIER_LOGO, XKB_KEY_l, spawn, {.v = lockcmd } },
{ WLR_MODIFIER_LOGO, XKB_KEY_p, spawn, {.v = key_cmd_disp } },
/* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */ /* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */
{ WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_Terminate_Server, quit, {0} }, { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_Terminate_Server, quit, {0} },
/* Media control keys without device specific action buttons */
{ WLR_MODIFIER_LOGO, XKB_KEY_space, spawn, {.v = key_cmd_media_toggle } },
{ WLR_MODIFIER_LOGO, XKB_KEY_s, spawn, {.v = key_cmd_media_stop } },
{ WLR_MODIFIER_LOGO, XKB_KEY_period, spawn, {.v = key_cmd_media_next } },
{ WLR_MODIFIER_LOGO, XKB_KEY_comma, spawn, {.v = key_cmd_media_prev } },
{ WLR_MODIFIER_LOGO, XKB_KEY_a, spawn, {.v = key_cmd_vol_mute } },
{ WLR_MODIFIER_LOGO, XKB_KEY_z, spawn, {.v = key_cmd_vol_lower } },
{ WLR_MODIFIER_LOGO, XKB_KEY_q, spawn, {.v = key_cmd_vol_raise } },
/* Action buttons */ /* Action buttons */
ACTKEYS_MAP(XKB_KEY_XF86AudioMute, vol_mute), ACTKEYS_MAP(XKB_KEY_XF86AudioMute, vol_mute),
ACTKEYS_MAP(XKB_KEY_XF86AudioLowerVolume, vol_lower), ACTKEYS_MAP(XKB_KEY_XF86AudioLowerVolume, vol_lower),