commit bf4067c0a1eab50a983bab71013ddc18775169fa
parent be284bc272cd965da9b2a10b486af7d1f32a9c98
Author: Hayden Hamilton <haydenh@sdf.org>
Date: Thu, 27 Aug 2020 21:53:35 +0100
mail
Diffstat:
7 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/LICENSE b/LICENSE
@@ -4,6 +4,7 @@ MIT/X Consortium License
© 2014 Dimitris Papastamos <sin@2f30.org>
© 2006-2014 Anselm R Garbe <anselm@garbe.us>
© 2014-2016 Laslo Hunhold <dev@frign.de>
+(c) 2019-Present Hayden Hamilton <hayden@haydenvh.com>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
diff --git a/config.h b/config.h
@@ -18,7 +18,7 @@ static const char * message = "Locked";
static const char * text_color = "#1e5eb1";
/* text size (must be a valid size) */
-static const char * font_name = "-b&h-luxi mono-bold-o-normal--0-0-0-0-m-0-adobe-standard";
+static const char * font_name = "-b&h-lucidatypewriter-medium-r-normal-sans-0-0-75-75-m-0-iso8859-15";
/* seconds before monitor shuts off */
static const int monitortime = 50;
diff --git a/explicit_bzero.o b/explicit_bzero.o
Binary files differ.
diff --git a/slock b/slock
Binary files differ.
diff --git a/slock.c b/slock.c
@@ -426,7 +426,7 @@ main(int argc, char **argv) {
case 'f':
if (!(dpy = XOpenDisplay(NULL)))
die("slock: cannot open display\n");
- font_names = XListFonts(dpy, "*", 10000 /* list 10000 fonts*/, &count_fonts);
+ font_names = XListFonts(dpy, "*", 30000 /* list 30000 fonts*/, &count_fonts);
for (i=0; i<count_fonts; i++) {
fprintf(stderr, "%s\n", *(font_names+i));
}
diff --git a/slock.o b/slock.o
Binary files differ.
diff --git a/slock_mod b/slock_mod
@@ -4,7 +4,7 @@ socket2="$2"
echo "dmpv/rmpv: $(hmpv state $socket1)" > ~/.cache/socket; echo "dmpvurl: $(hmpv state $socket2)" >> ~/.cache/socket
hmpv pause $socket1; sleep 0.1; hmpv pause $socket2; sleep 0.1; hmpv pause $socket2; sleep 0.1; hmpv pause $socket2
-slock -m "Locked at $(date) by $USER - what? You thought I would let you in... Fool."
+slock -m "Locked at $(date) by $USER - what? You thought I would let you in...$(printf "\n")$(figlet L0ck3d)"
state=$(cat ~/.cache/socket | awk '/:/')
state1=$(echo "$state" | head -n -1 | awk '{print $2}')