aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-16 23:47:53 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-16 23:47:53 +0530
commitcac37a84a20cc27f00ea14a95388ce650ebe749c (patch)
treea0c46bf4dac73a00d606342582996a9b68428eaa /config.h
parent5054d0060c0226509d40e3429a573b7e912a72a8 (diff)
downloadshotkey-cac37a84a20cc27f00ea14a95388ce650ebe749c.tar.gz
shotkey-cac37a84a20cc27f00ea14a95388ce650ebe749c.zip
Adds modes along with nested key bindings
Diffstat (limited to '')
-rw-r--r--config.h14
1 files changed, 12 insertions, 2 deletions
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) },
};