|
xsecurelock
1.7.0
XSecureLock is an X11 screen lock utility.
|
#include <X11/X.h>#include <X11/Xatom.h>#include <X11/Xlib.h>#include <math.h>#include <stdio.h>#include <stdlib.h>#include <time.h>#include "../env_settings.h"#include "../logging.h"#include "../wm_properties.h"Data Structures | |
| struct | DimEffect |
| struct | DitherEffect |
| struct | OpacityEffect |
Functions | |
| void | Bayer (int index, int power, int *x, int *y) |
| Screen dimmer. More... | |
| int | HaveCompositor (Display *display) |
| void | DitherEffectPreCreateWindow (void *unused_self, Display *unused_display, XSetWindowAttributes *unused_dimattrs, unsigned long *unused_dimmask) |
| void | DitherEffectPostCreateWindow (void *self, Display *display, Window dim_window) |
| void | DitherEffectDrawFrame (void *self, Display *display, Window dim_window, int frame, int w, int h) |
| void | DitherEffectInit (struct DitherEffect *dimmer, Display *unused_display) |
| void | OpacityEffectPreCreateWindow (void *unused_self, Display *unused_display, XSetWindowAttributes *dimattrs, unsigned long *dimmask) |
| void | OpacityEffectPostCreateWindow (void *self, Display *display, Window dim_window) |
| double | sRGBToLinear (double value) |
| double | LinearTosRGB (double value) |
| void | OpacityEffectDrawFrame (void *self, Display *display, Window dim_window, int frame, int unused_w, int unused_h) |
| void | OpacityEffectInit (struct OpacityEffect *dimmer, Display *display) |
| int | main (int argc, char **argv) |
Variables | |
| int | dim_time_ms |
| int | wait_time_ms |
| double | dim_fps |
| double | dim_alpha |
| XColor | dim_color |
| void Bayer | ( | int | index, |
| int | power, | ||
| int * | x, | ||
| int * | y | ||
| ) |
Screen dimmer.
A simple tool to dim the screen, then wait a little so a screen locker can take over.
Sample usage: xset s 300 2 xss-lock -n dim-screen -l xsecurelock
| void DitherEffectDrawFrame | ( | void * | self, |
| Display * | display, | ||
| Window | dim_window, | ||
| int | frame, | ||
| int | w, | ||
| int | h | ||
| ) |
| void DitherEffectInit | ( | struct DitherEffect * | dimmer, |
| Display * | unused_display | ||
| ) |
| void DitherEffectPostCreateWindow | ( | void * | self, |
| Display * | display, | ||
| Window | dim_window | ||
| ) |
| void DitherEffectPreCreateWindow | ( | void * | unused_self, |
| Display * | unused_display, | ||
| XSetWindowAttributes * | unused_dimattrs, | ||
| unsigned long * | unused_dimmask | ||
| ) |
| int HaveCompositor | ( | Display * | display | ) |
| double LinearTosRGB | ( | double | value | ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| void OpacityEffectDrawFrame | ( | void * | self, |
| Display * | display, | ||
| Window | dim_window, | ||
| int | frame, | ||
| int | unused_w, | ||
| int | unused_h | ||
| ) |
| void OpacityEffectInit | ( | struct OpacityEffect * | dimmer, |
| Display * | display | ||
| ) |
| void OpacityEffectPostCreateWindow | ( | void * | self, |
| Display * | display, | ||
| Window | dim_window | ||
| ) |
| void OpacityEffectPreCreateWindow | ( | void * | unused_self, |
| Display * | unused_display, | ||
| XSetWindowAttributes * | dimattrs, | ||
| unsigned long * | dimmask | ||
| ) |
| double sRGBToLinear | ( | double | value | ) |
| double dim_alpha |
| XColor dim_color |
| double dim_fps |
| int dim_time_ms |
| int wait_time_ms |
1.8.14