diff --git a/.gitignore b/.gitignore index e198566..7f9f9b6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ protocol/*.c protocol/*.h protocol/*.xml *~ -miix-wlr \ No newline at end of file +convertablet \ No newline at end of file diff --git a/build.sh b/build.sh index 892c093..807d201 100755 --- a/build.sh +++ b/build.sh @@ -5,6 +5,6 @@ set -ex; SOURCES="main.c output_manager.c accel_monitor.c usb_device_detection.c" CFLAGS="-std=c2x -Wall -Wextra -pedantic $CFLAGS" LIBS="-lwayland-client -lusb-1.0 protocol/wlr-output-management-unstable-v1.c" -OUTPUT=miix-wlr +OUTPUT=convertablet clang $CFLAGS $LIBS $SOURCES -o $OUTPUT diff --git a/main.c b/main.c index 30178cb..e92f7df 100644 --- a/main.c +++ b/main.c @@ -31,10 +31,10 @@ static char* get_hook_path(char const* const hook_name) char* path; char* xdg_config_dir = getenv("XDG_CONFIG_HOME"); if (xdg_config_dir) - asprintf(&path, "%s/miix-wlr/hooks/%s-hook", xdg_config_dir, hook_name); + asprintf(&path, "%s/convertablet/hooks/%s-hook", xdg_config_dir, hook_name); else asprintf(&path, - "%s/.config/miix-wlr/hooks/%s-hook", + "%s/.config/convertablet/hooks/%s-hook", getenv("HOME"), hook_name); return path;