|
xsecurelock 1.8.0
XSecureLock is an X11 screen lock utility.
|
#include <X11/X.h>#include <X11/Xlib.h>#include <signal.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include <sys/time.h>#include <time.h>#include <unistd.h>#include "../env_settings.h"#include "../logging.h"#include "../wait_pgrp.h"Functions | |
| static void | HandleSIGTERM (int signo) |
| uint64_t | GetIdleTimeForSingleTimer (Display *display, Window w, const char *timer) |
| uint64_t | GetIdleTime (Display *display, Window w, const char *timers) |
| int | main (int argc, char **argv) |
Variables | |
| pid_t | childpid = 0 |
| Screen dimmer helper. | |
| uint64_t GetIdleTime | ( | Display * | display, |
| Window | w, | ||
| const char * | timers ) |
| uint64_t GetIdleTimeForSingleTimer | ( | Display * | display, |
| Window | w, | ||
| const char * | timer ) |
|
static |
| int main | ( | int | argc, |
| char ** | argv ) |
| pid_t childpid = 0 |
Screen dimmer helper.
A simple tool to run a tool to dim the screen, and - depending on which comes first:
Sample usage: until_nonidle dim-screen || xsecurelock