Add Privacy Center (Tor, GS-Warp, OpenVPN, GSocket, WireGuard), tunneled DNS, and stage a1105 (vendetta) changelog

This commit is contained in:
Luxferre committed 2026-11-01 20:58:18 +02:00
1 parent 471916424e
commit 2030201539
110 files changed
+5562 -37

No files matched your search

+5 -1
View File
@@ -329,6 +329,9 @@ static const char *resolve_plugin_name_from_argv0(const char *argv0) {
if (strcasecmp(base, "xengmenu") == 0 || strcasecmp(base, "engmenu") == 0) {
return "engmenu";
}
if (strcasecmp(base, "xprivacy") == 0 || strcasecmp(base, "privacy") == 0) {
return "privacy";
}
return NULL;
}
@@ -426,7 +429,8 @@ int main(int argc, char **argv) {
strcmp(plugin_name, "tox") == 0 ||
strcmp(plugin_name, "irc") == 0 ||
strcmp(plugin_name, "sip") == 0 ||
strcmp(plugin_name, "engmenu") == 0)) {
strcmp(plugin_name, "engmenu") == 0 ||
strcmp(plugin_name, "privacy") == 0)) {
const char *a1 = (sub_argc >= 2 && sub_argv[1]) ? sub_argv[1] : "";
if (strcmp(a1, "--preload") != 0 && strcmp(a1, "close") != 0) {
return 1;
+3
View File
@@ -1877,6 +1877,7 @@ inline void closeOtherPlugins(const char* selfPluginName) {
{"xgps.pid", "gps"},
{"xpasscode.pid", "passcode"},
{"xengmenu.pid", "engmenu"},
{"xprivacy.pid", "privacy"},
};
for (const auto& p : kAllPlugins) {
if (selfPluginName && std::strcmp(p.name, selfPluginName) == 0) {
@@ -1926,6 +1927,7 @@ inline bool isAnotherPluginActive(const char* selfPluginName) {
{"xgps.pid", "gps"},
{"xpasscode.pid", "passcode"},
{"xengmenu.pid", "engmenu"},
{"xprivacy.pid", "privacy"},
};
for (const auto& p : kAllPlugins) {
if (selfPluginName && std::strcmp(p.name, selfPluginName) == 0) {
@@ -2009,6 +2011,7 @@ inline void broadcastThemeReload(const char* selfPluginName = nullptr) {
"gps",
"passcode",
"engmenu",
"privacy",
};
for (const char* name : kPlugins) {
if (selfPluginName && std::strcmp(name, selfPluginName) == 0) {
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1879,7 +1879,7 @@ int neoui_broadcast_theme_reload(const char* skip_plugin) {
"dmenu", "locker", "xdrawer", "dialer", "calllog", "callscreen", "contacts",
"sms", "files", "camera", "themes", "modem", "networks", "ringtones",
"wallpapers", "music", "sip", "email", "irc", "tox", "smallweb", "webarchy", "gps",
"passcode", "engmenu"
"passcode", "engmenu", "privacy"
};
std::string skip = (skip_plugin && skip_plugin[0]) ? skip_plugin : "";
for (const char* p : kPlugins) {
+22
View File
@@ -175,6 +175,7 @@ static const char *ICON_GAM = "\xf3\xb0\x8a\xb4";
static const char *ICON_EML = "\xf3\xb0\x87\xae";
static const char *ICON_GLB = "\xef\x82\xac";
static const char *ICON_MAP = "\xf3\xb0\x8d\x8d";
static const char *ICON_SHD = "\xef\x84\xb2";
static void drawmenu(void);
static void show_menu(void);
@@ -857,6 +858,16 @@ trigger_plugin_open(const char *plugin_spec)
snprintf(plugin_name, sizeof(plugin_name), "%s", plugin_spec);
}
if (access("/tmp/bananarchy_duress_mode", F_OK) == 0 &&
(strcmp(plugin_name, "passcode") == 0 ||
strcmp(plugin_name, "tox") == 0 ||
strcmp(plugin_name, "irc") == 0 ||
strcmp(plugin_name, "sip") == 0 ||
strcmp(plugin_name, "engmenu") == 0 ||
strcmp(plugin_name, "privacy") == 0)) {
return;
}
char fifo_path[128];
snprintf(fifo_path, sizeof(fifo_path), "/tmp/dwm_plugin_%s.fifo", plugin_name);
int fd = open(fifo_path, O_WRONLY | O_NONBLOCK | O_CLOEXEC);
@@ -2519,6 +2530,11 @@ open_builtin_menu(const char *menu_name, int keep_idx)
snprintf(label, sizeof(label), "%s Networks", ICON_NET);
add_menu_item(label, "@plugin:networks", 0);
if (!duress) {
snprintf(label, sizeof(label), "%s Privacy Center", ICON_SHD);
add_menu_item(label, "@plugin:privacy", 0);
}
snprintf(label, sizeof(label), "%s Audio", ICON_MUS);
add_menu_item(label, "@menu:audio", 1);
@@ -2561,6 +2577,8 @@ open_builtin_menu(const char *menu_name, int keep_idx)
add_menu_item(label, "@plugin:irc", 0);
snprintf(label, sizeof(label), "%s Tox Messenger", ICON_MSG);
add_menu_item(label, "@plugin:tox", 0);
snprintf(label, sizeof(label), "%s Privacy Center", ICON_SHD);
add_menu_item(label, "@plugin:privacy", 0);
}
snprintf(label, sizeof(label), "%s Webarchy Browser", ICON_GLB);
add_menu_item(label, "@plugin:webarchy", 0);
@@ -2786,6 +2804,8 @@ open_builtin_menu(const char *menu_name, int keep_idx)
if (!duress) {
snprintf(label, sizeof(label), "%s Passcode", ICON_PLK);
add_menu_item(label, "@plugin:passcode", 0);
snprintf(label, sizeof(label), "%s Privacy Center", ICON_SHD);
add_menu_item(label, "@plugin:privacy", 0);
}
snprintf(label, sizeof(label), "%s Themes", ICON_THM);
@@ -2996,6 +3016,7 @@ any_other_plugin_active(void)
"xgps.pid",
"xpasscode.pid",
"xengmenu.pid",
"xprivacy.pid",
};
const char *rdir = getenv("XDG_RUNTIME_DIR");
const char *base = (rdir && rdir[0]) ? rdir : "/run/user/10000";
@@ -3049,6 +3070,7 @@ close_other_active_plugins(void)
{ "xgps.pid", "/tmp/dwm_plugin_gps.fifo" },
{ "xpasscode.pid", "/tmp/dwm_plugin_passcode.fifo" },
{ "xengmenu.pid", "/tmp/dwm_plugin_engmenu.fifo" },
{ "xprivacy.pid", "/tmp/dwm_plugin_privacy.fifo" },
};
const char *rdir = getenv("XDG_RUNTIME_DIR");
const char *base = (rdir && rdir[0]) ? rdir : "/run/user/10000";