aboutsummaryrefslogtreecommitdiff
path: root/config.h
blob: 6e588860fe662276ece2c97ff8acba44ae6869d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Shell
static char shell[] = "/bin/sh";

#define Super Mod1Mask

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
static 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
static Key keys[] = {
  { Super|ShiftMask, XK_y,   cmd("notify-send hello") },
  { Super|ShiftMask, XK_z,   mode(Music, False) },
  { Super|ShiftMask, XK_x,   mode(Bright, True) },
};

static ModeProperties mode_properties[MODE_SIZE] = {
  [Music] = { "Music player" },
  [Bright] = { "Brightness" },
};

// Call this script on mode change
static char* on_mode_change = "notify-send \"kadj [$SHOTKEY_MODE_ID] $SHOTKEY_MODE_LABEL\"";