From b751362b167b529d47f5c968a3840557431716c2 Mon Sep 17 00:00:00 2001 From: Mahesh Asolkar Date: Sun, 15 Dec 2024 12:33:51 -0800 Subject: [PATCH] Updates to button actions --- config.mma.def.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/config.mma.def.h b/config.mma.def.h index c6ced8b..bfbbe3d 100644 --- a/config.mma.def.h +++ b/config.mma.def.h @@ -59,7 +59,7 @@ static const struct xkb_rule_names xkb_rules = { /* example: .options = "ctrl:nocaps", */ - .options = "caps:none", + .options = "caps:none,compose:rctrl", }; 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_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 */ { 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 */ ACTKEYS_MAP(XKB_KEY_XF86AudioMute, vol_mute), ACTKEYS_MAP(XKB_KEY_XF86AudioLowerVolume, vol_lower),