Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.PHONEY: install all
all: nagad

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion naga_disablekbd.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion nagad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down