acpilight with +s wrapper

This commit is contained in:
2022-07-08 10:24:58 +02:00
parent c1cf7e4760
commit 64a3316862
3 changed files with 44 additions and 2 deletions

17
acpilight/xbacklight.c Normal file
View File

@ -0,0 +1,17 @@
#include <unistd.h>
#include <stdlib.h>
int main (int argc, char** argv)
{
int i;
char** args;
args = malloc((argc+1)*sizeof(char*));
for(i = 0; i < argc; ++i) {
args[i] = argv[i];
}
args[argc] = NULL;
execv("/opt/xbacklight", args);
return 0;
}