diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-06-20 15:40:15 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-06-20 15:40:15 +0530 |
| commit | 2ed53f460236350cb8e843badac96657e2b4fd70 (patch) | |
| tree | eabdc539a5a8d9d3ee832be5c9d2c13b5f752f40 | |
| parent | 3fd86cd82d87f0b3e6537538587b4e580e162417 (diff) | |
| download | shotkey-2ed53f460236350cb8e843badac96657e2b4fd70.tar.gz shotkey-2ed53f460236350cb8e843badac96657e2b4fd70.zip | |
Changes env variable to prevent clashes
Diffstat (limited to '')
| -rw-r--r-- | config.h | 2 | ||||
| -rw-r--r-- | shotkey.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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\""; @@ -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); |
