Activate passcode lockscreen immediately upon GUI startup on boot

This commit is contained in:
Luxferre committed 2026-10-30 09:34:09 +02:00
1 parent 8c2a337c0d
commit 8df412085b
53 files changed
+79 -22

No files matched your search

+9 -2
View File
@@ -1797,7 +1797,7 @@ is_plugin_daemon_alive(const char *plugin_name)
buf[i] = ' ';
}
buf[n] = '\0';
return (strstr(buf, "dwm-plugin") != NULL && strstr(buf, plugin_name) != NULL);
return (strstr(buf, plugin_name) != NULL);
}
static int preload_stagger_idx = 0;
@@ -1812,7 +1812,7 @@ host_spawn_plugin(const char *plugin_name, const char *arg)
return;
int stagger_ms = 600;
if (strcmp(plugin_name, "locker") == 0)
stagger_ms = 80;
stagger_ms = 20;
else if (strcmp(plugin_name, "dmenu") == 0)
stagger_ms = 150;
else
@@ -3082,6 +3082,13 @@ setup(void)
}
unlink("/tmp/sxmo_softkey_suppress");
unlink("/tmp/sxmo_softkey_state");
{
int lfd = open("/tmp/bananarchy_screen_locked", O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0644);
if (lfd >= 0) {
(void)write(lfd, "1\n", 2);
close(lfd);
}
}
load_plugins();
grabkeys();
focus(NULL);