-
Notifications
You must be signed in to change notification settings - Fork 0
/
nili.c
31 lines (28 loc) · 962 Bytes
/
nili.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[])
{
if (argc != 4)
{
printf("\nUsage: nili [OPTIONS] [GROUP] [PROFILE]\n\n[OPTIONS]:\nlist: list [PROFILE] in [SET] with corresponding gamma values.\ncreate or cr: create new [PROFILE] in [GROUP], if does not exist.\nupdate or up: update [PROFILE] in [GROUP], if it exist.\ndelete or dl: delete [PROFILE] in [GROUP], if it exist.\n\n[GROUP]:\nEnter [GROUP] name to group multiple profile(s).\n\n[PROFILE]:\nEnter profile name which contain gamma values, which xorg-xrandr will use.\n\n");
return 2;
}
switch (arg[1])
{
case "create":
create();
break;
case "cr":
create();
break;
case "update":
update();
break;
case "up":
update();
break;
case "delete":
update();
break;
}