diff options
| -rw-r--r-- | slock/config.h | 2 | ||||
| -rwxr-xr-x | slock/slock | bin | 32144 -> 32144 bytes | |||
| -rw-r--r-- | slock/slock.c | 4 |
3 files changed, 3 insertions, 3 deletions
diff --git a/slock/config.h b/slock/config.h index b2717c8..9e361b2 100644 --- a/slock/config.h +++ b/slock/config.h @@ -16,7 +16,7 @@ static const char *colorname[NUMCOLS] = { static const int failonclear = 1; /* Background image path, should be available to the user above */ -static const char* background_image = "Private/photo/0FA8481B-BCC3-440D-8A4C-1907C371102A.png"; +static const char* background_image = "Private/photo/9CB06044-2DC1-4615-8347-721653FD2B1E.png"; /* default message */ static const char *message = "THESIAH"; diff --git a/slock/slock b/slock/slock Binary files differindex 034a415..a17bcc9 100755 --- a/slock/slock +++ b/slock/slock diff --git a/slock/slock.c b/slock/slock.c index 0cb1b74..c7bf489 100644 --- a/slock/slock.c +++ b/slock/slock.c @@ -186,7 +186,7 @@ static void writemessage(Display *dpy, Window win, int screen) { XftTextExtentsUtf8(dpy, font, (FcChar8 *)message, strlen(message), &extents); // Center the text horizontally and vertically x = (attr.width - extents.xOff) / 2; - y = (attr.height - (font->ascent + font->descent)) / 1.32 + font->ascent; + y = (attr.height - (font->ascent + font->descent)) / 1.185 + font->ascent; // Draw the text XftDrawStringUtf8(draw, &color, font, x, y, (FcChar8 *)message, strlen(message)); @@ -285,7 +285,7 @@ refresh(Display *dpy, Window win , int screen, struct tm time, cairo_t* cr, cair // Measure the text to be rendered cairo_text_extents(cr, tm, &extents); xpos = (DisplayWidth(dpy, screen) - extents.width) / 2 - extents.x_bearing; - ypos = (DisplayHeight(dpy, screen) - extents.height) / 1.2 - extents.y_bearing; + ypos = (DisplayHeight(dpy, screen) - extents.height) / 1.1 - extents.y_bearing; cairo_move_to(cr, xpos, ypos); cairo_show_text(cr, tm); |
