slock: pantalla con reloj, fecha, batería y barra de estado
El fondo es fijo y el color del estado (inicio, escribiendo, error) pasa a una barra inferior. Se muestran la hora, la fecha, un punto por carácter tecleado, el usuario y la batería, refrescando reloj y batería cada segundo. Usa Xft y los iconos de Symbols Nerd Font. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016UdJsHrbkmzhoCb6TthP2m
This commit is contained in:
parent
c736ea8b01
commit
ce3a0db5bf
4 changed files with 382 additions and 34 deletions
|
|
@ -8,5 +8,21 @@ static const char *colorname[NUMCOLS] = {
|
|||
[FAILED] = "#CC3333", /* wrong password */
|
||||
};
|
||||
|
||||
/* lock screen */
|
||||
static const char *bgcolor = "black";
|
||||
static const char *fgcolor = "#eeeeee";
|
||||
static const char *dimcolor = "#888888";
|
||||
|
||||
static const char *clockfont = "monospace:bold:pixelsize=160";
|
||||
static const char *datefont = "monospace:pixelsize=34";
|
||||
static const char *textfont = "monospace:pixelsize=22";
|
||||
static const char *iconfont = "Symbols Nerd Font Mono:pixelsize=24";
|
||||
|
||||
static const int barheight = 10; /* height of the bottom bar */
|
||||
static const unsigned int maxdots = 24; /* max dots shown while typing */
|
||||
|
||||
static const char *battery = "BAT0"; /* /sys/class/power_supply/... */
|
||||
static const int batterylow = 20; /* percent shown as low */
|
||||
|
||||
/* treat a cleared input like a wrong password (color) */
|
||||
static const int failonclear = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue