commit 953f0ae0ad8688cc629126229ad36c65c5965c91
parent 1c36a9a6a87c0184af41f1a657484ad8b65f35ab
Author: Milutin Popovic <milutin@popovic.xyz>
Date: Tue, 10 Mar 2026 16:11:07 +0100
add user group to xresources
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -1,6 +1,6 @@
/* user and group to drop privileges to */
-static const char *user = "mika";
-static const char *group = "wheel";
+static const char *user = "user"; // <- change this to use slock
+static const char *group = "group"; // <- change this to use slock
static const char *colorname[NUMCOLS] = {
[BACKGROUND] = "black", /* after initialization */
@@ -70,6 +70,8 @@ static int pixelSize=10;
* Xresources preferences to load at startup
*/
ResourcePref resources[] = {
+ { "user", STRING, &user},
+ { "user", STRING, &group}
{ "color_background", STRING, &colorname[BACKGROUND] },
{ "color_init", STRING, &colorname[INIT] },
{ "color_input", STRING, &colorname[INPUT] },