diff --git a/Makefile b/Makefile index 2a19970..7188bd1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ - .PHONEY: install all all: nagad @@ -12,7 +11,7 @@ install: nagad uninstall: rm -f /etc/udev/rules.d/naga.rules - rm -f /usr/local/bin/naged + rm -f /usr/local/bin/nagad rm -f /usr/local/bin/naga_plugged.pl rm -f /usr/local/bin/naga_disablekbd.pl diff --git a/naga_disablekbd.pl b/naga_disablekbd.pl index 3e79598..d6ff143 100644 --- a/naga_disablekbd.pl +++ b/naga_disablekbd.pl @@ -8,7 +8,7 @@ for(my $i =0; $i < @lines; $i++){ my $l = $lines[$i]; - if($l =~ /Razer Naga\s+id=(\d+).+keyboard/c){ + if($l =~ /Razer Naga.*id=(\d+).+keyboard/c){ # found the keyboard input my $id = $1; system("xinput set-int-prop $id \"Device Enabled\" 8 0"); diff --git a/nagad.cpp b/nagad.cpp index c7d9928..18adb66 100644 --- a/nagad.cpp +++ b/nagad.cpp @@ -32,7 +32,7 @@ char basedir[1024]; void init(){ memset(basedir, 0, sizeof(basedir)); strcpy(basedir, getenv("HOME")); - strcat(basedir, "/.naga"); + strcat(basedir, "/.config/naga"); printf("Using directory %s\n", basedir); char xauth[2048];