aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.h2
-rw-r--r--shotkey.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/config.h b/config.h
index 70732de..6e58886 100644
--- a/config.h
+++ b/config.h
@@ -36,5 +36,5 @@ static ModeProperties mode_properties[MODE_SIZE] = {
};
// Call this script on mode change
-static char* on_mode_change = "notify-send \"kadj [$MODE_ID] $MODE_LABEL\"";
+static char* on_mode_change = "notify-send \"kadj [$SHOTKEY_MODE_ID] $SHOTKEY_MODE_LABEL\"";
diff --git a/shotkey.c b/shotkey.c
index d839ef4..3df41ce 100644
--- a/shotkey.c
+++ b/shotkey.c
@@ -77,10 +77,10 @@ void handle_mode_change() {
char str[255];
sprintf(str, "%d", current_mode);
- setenv("MODE_ID", str, 1);
+ setenv("SHOTKEY_MODE_ID", str, 1);
sprintf(str, "%s", get_mode_label());
- setenv("MODE_LABEL", str, 1);
+ setenv("SHOTKEY_MODE_LABEL", str, 1);
char* cmd[] = {shell, "-c", on_mode_change, NULL};
spawn(cmd);