diff options
Diffstat (limited to 'recordmydesktop/src/parseargs.c')
-rw-r--r-- | recordmydesktop/src/parseargs.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recordmydesktop/src/parseargs.c b/recordmydesktop/src/parseargs.c index a540610..1ed0cc1 100644 --- a/recordmydesktop/src/parseargs.c +++ b/recordmydesktop/src/parseargs.c @@ -104,6 +104,11 @@ int ParseArgs(int argc,char **argv,ProgArgs *arg_return){ "\t--no-wm-check\t\tDo not try to detect" " the window manager(and set options according to it)\n" + "\t-pause-shortcut MOD+KEY\tShortcut that will be used for (un)pausing" + "(default Control+Mod1+p).\n" + "\t-stop-shortcut MOD+KEY\tShortcut that will be used to stop the " + "recording (default Control+Mod1+s).\n" + "\t--compress-cache\tImage data are cached with light compression.\n" "\t-workdir DIR\t\tLocation where a temporary directory" " will be created to hold project files(default $HOME).\n" @@ -414,6 +419,30 @@ int ParseArgs(int argc,char **argv,ProgArgs *arg_return){ } i++; } + else if(!strcmp(argv[i],"-pause-shortcut")){ + if(i+1<argc){ + free(arg_return->pause_shortcut); + arg_return->pause_shortcut=malloc(strlen(argv[i+1])+1); + strcpy(arg_return->pause_shortcut,argv[i+1]); + } + else{ + fprintf(stderr,"Argument Usage: -pause-shortcut MOD+KEY\n"); + return 1; + } + i++; + } + else if(!strcmp(argv[i],"-stop-shortcut")){ + if(i+1<argc){ + free(arg_return->stop_shortcut); + arg_return->stop_shortcut=malloc(strlen(argv[i+1])+1); + strcpy(arg_return->stop_shortcut,argv[i+1]); + } + else{ + fprintf(stderr,"Argument Usage: -stop-shortcut MOD+KEY\n"); + return 1; + } + i++; + } else if(!strcmp(argv[i],"-buffer-size")){ if(i+1<argc){ int num=atoi(argv[i+1]); |