aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-21 22:38:29 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-21 22:38:29 +0530
commit4f6f940ca6686cfe1cd5197c2a32605c024a3934 (patch)
treece6fc69b0f6bd91d5864c99a66e7ce9cdf97c62b /config.def.h
parent900c5a3a955324aad6035c499003b16bbdd0d96c (diff)
downloadshotkey-4f6f940ca6686cfe1cd5197c2a32605c024a3934.tar.gz
shotkey-4f6f940ca6686cfe1cd5197c2a32605c024a3934.zip
Adds config.def.h for default config
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
new file mode 100644
index 0000000..ebab43c
--- /dev/null
+++ b/config.def.h
@@ -0,0 +1,40 @@
+// Shell
+char shell[] = "/bin/sh";
+
+#define Super Mod4Mask
+
+enum {
+ Music,
+ Bright,
+
+ // Declare modes above this
+ MODE_SIZE,
+};
+
+// Define mode key bindings here
+// NOTE: "10" here is the maximum number of key bindings for each mode
+Key modes[MODE_SIZE][10] = {
+ [Music] = {
+ { 0, XK_m, cmd("notify-send inside_music") },
+ },
+ [Bright] = {
+ { 0, XK_m, cmd("notify-send inside_bright") },
+ { 0, XK_n, cmd("notify-send inside_bright_1") },
+ },
+};
+
+// Define normal mode key bindings here
+Key keys[] = {
+ { Super|ShiftMask, XK_y, cmd("notify-send hello") },
+ { Super|ShiftMask, XK_z, mode(Music, False) },
+ { Super|ShiftMask, XK_x, mode(Bright, True) },
+};
+
+ModeProperties mode_properties[MODE_SIZE] = {
+ [Music] = { "Music player" },
+ [Bright] = { "Brightness" },
+};
+
+// Call this script on mode change
+char* on_mode_change = "notify-send \"kadj [$SHOTKEY_MODE_ID] $SHOTKEY_MODE_LABEL\"";
+