From cac37a84a20cc27f00ea14a95388ce650ebe749c Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 16 Jun 2020 23:47:53 +0530 Subject: Adds modes along with nested key bindings --- config.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 1989e9b..853b0cf 100644 --- a/config.h +++ b/config.h @@ -3,8 +3,18 @@ static char shell[] = "sh"; #define MOD Mod1Mask +enum { + Music, +MODE_SIZE }; + +static Key modes[MODE_SIZE][5] = { + [Music] = { + { MOD|ShiftMask, XK_m, cmd("notify-send inside") }, + }, +}; + static Key keys[] = { - { MOD|ShiftMask, XK_y, "notify-send hello" }, - { MOD|ShiftMask, XK_z, "~/scripts/notify.sh wow" }, + { MOD|ShiftMask, XK_y, cmd("notify-send hello") }, + { MOD|ShiftMask, XK_z, mode(Music) }, }; -- cgit v1.3.1