Add NeoUI passcode configurator, duress mode profile, and Bluetooth OBEX UI
This commit is contained in:
1 parent
51a1a91d42
commit
62ac46e498
100 files changed
+2736
-240
No files matched your search
@@ -1282,6 +1282,7 @@ set_hw_backlight(int on)
|
||||
}
|
||||
write_sysfs_str("/sys/class/leds/white:kbd_backlight/brightness", "0");
|
||||
write_sysfs_str("/sys/class/backlight/backlight/brightness", "0");
|
||||
write_sysfs_str("/sys/class/backlight/backlight/bl_power", "4");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3137,6 +3138,14 @@ sigchld(int unused)
|
||||
void
|
||||
spawn(const Arg *arg)
|
||||
{
|
||||
if (!arg || !arg->v || !((char **)arg->v)[0])
|
||||
return;
|
||||
if (access("/tmp/bananarchy_duress_mode", F_OK) == 0) {
|
||||
const char *p0 = ((const char *const *)arg->v)[0];
|
||||
const char *p2 = (p0 && ((const char *const *)arg->v)[1]) ? ((const char *const *)arg->v)[2] : NULL;
|
||||
if (strcmp(p0, "st") == 0 || (p2 && strcmp(p2, "st") == 0))
|
||||
return;
|
||||
}
|
||||
if (arg->v == dmenucmd)
|
||||
dmenumon[0] = '0' + selmon->num;
|
||||
if (fork() == 0) {
|
||||
@@ -3829,6 +3838,8 @@ readxresources(void)
|
||||
unsigned char *prop = NULL;
|
||||
|
||||
const char *home = getenv("HOME");
|
||||
if (access("/tmp/bananarchy_duress_mode", F_OK) == 0)
|
||||
home = "/tmp/duress_home";
|
||||
char path[512];
|
||||
snprintf(path, sizeof(path), "%s/.Xresources", (home && home[0]) ? home : "/home/user");
|
||||
xdb = XrmGetFileDatabase(path);
|
||||
|
||||
Reference in new issue
Block a user