diff options
| author | NPScript <nathan.p.reiner@gmail.com> | 2021-02-22 12:46:29 +0100 |
|---|---|---|
| committer | NPScript <nathan.p.reiner@gmail.com> | 2021-02-22 12:46:29 +0100 |
| commit | bfbca90991c227c4db99018edbb0325557e931d0 (patch) | |
| tree | e09241665d505300efccac0108cd1f9fa65dbef7 | |
| parent | 0370484f394512a3240f1efe6cebe61744ea780e (diff) | |
changed theme
| -rw-r--r-- | config.h | 8 | ||||
| -rw-r--r-- | drw.o | bin | 10624 -> 10616 bytes | |||
| -rw-r--r-- | explicit_bzero.o | bin | 1400 -> 1408 bytes | |||
| -rwxr-xr-x | slock | bin | 27416 -> 27496 bytes | |||
| -rw-r--r-- | slock.c | 10 | ||||
| -rw-r--r-- | slock.o | bin | 13528 -> 13856 bytes | |||
| -rw-r--r-- | util.o | bin | 2264 -> 2256 bytes |
7 files changed, 13 insertions, 5 deletions
@@ -3,15 +3,15 @@ static const char *user = "nobody"; static const char *group = "nogroup"; static const char *colorname[NUMCOLS] = { - [INIT] = "#000000", /* after initialization */ - [INPUT] = "#000000", /* during input */ - [FAILED] = "#000000", /* wrong password */ + [INIT] = "#181818", /* after initialization */ + [INPUT] = "#181818", /* during input */ + [FAILED] = "#181818", /* wrong password */ }; /* treat a cleared input like a wrong password (color) */ static const int failonclear = 1; const char * fonts[] = {"Source Code Pro:size=24"}; -const char * schemes[] = {"#ffffff", "#000000", "#000000"}; +const char * schemes[] = {"#547f62", "#181818", "#181818"}; const int diasize[] = {320, 320}; const char * lock_message = "Nathan Reiner"; const char * pass_char = "•"; Binary files differdiff --git a/explicit_bzero.o b/explicit_bzero.o Binary files differBinary files differindex d98c7e9..5c022a6 100644 --- a/explicit_bzero.o +++ b/explicit_bzero.o @@ -152,8 +152,10 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, int t_pos[] = {(diasize[0] / 2) - (l_size / 2) + w_pos[0], w_pos[1]}; int t_len[] = {diasize[0] + w_pos[0], w_pos[1] / 3}; + drw_rect(drw, 0, 0, crtc_info->width, crtc_info->height, 1, 1); drw_text(drw, t_pos[0], t_pos[1], t_len[0], t_len[1], 0, lock_message, 0); drw_map(drw, locks[0]->win, 0, 0, crtc_info->width, crtc_info->height); + while (running && !XNextEvent(dpy, &ev)) { @@ -214,7 +216,8 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, oldc = color; } - drw_rect(drw, 0, crtc_info->height - w_pos[1], crtc_info->width, w_len[1], 1, 1); + drw_rect(drw, 0, 0, crtc_info->width, crtc_info->height, 1, 1); + drw_text(drw, t_pos[0], t_pos[1], t_len[0], t_len[1], 0, lock_message, 0); if (!failure) { @@ -235,6 +238,11 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, failure = 0; } + if (strlen(passwd) > 0) + drw_rect(drw, crtc_info->width / 2 - strlen(passwd) * 15 / 2 - 15, w_pos[1] + diasize[1] + 140, strlen(passwd) * 15 + 33, 47, 0, 0); + else + drw_rect(drw, crtc_info->width / 2 - 15 / 2 - 15, w_pos[1] + diasize[1] + 140, 15 + 33, 47, 0, 0); + drw_map(drw, locks[0]->win, 0, 0, crtc_info->width, crtc_info->height); } else if (rr->active && ev.type == rr->evbase + RRScreenChangeNotify) { Binary files differBinary files differ |