From 23830f3454c09b260bd0cff45699710e7eaa962b Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 23 Oct 2025 16:47:06 +0200 Subject: [PATCH] work safety: disabled by default, add toggle to settings app --- .../quickshell/ii/modules/common/Config.qml | 4 ++-- .../ii/modules/settings/GeneralConfig.qml | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/Config.qml b/dots/.config/quickshell/ii/modules/common/Config.qml index bece5f94e..ac8fa28fa 100644 --- a/dots/.config/quickshell/ii/modules/common/Config.qml +++ b/dots/.config/quickshell/ii/modules/common/Config.qml @@ -483,8 +483,8 @@ Singleton { property JsonObject workSafety: JsonObject { property JsonObject enable: JsonObject { - property bool wallpaper: true - property bool clipboard: true + property bool wallpaper: false + property bool clipboard: false } property JsonObject triggerCondition: JsonObject { property list networkNameKeywords: ["airport", "cafe", "college", "company", "eduroam", "free", "guest", "public", "school", "university"] diff --git a/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml b/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml index 0953b3d9e..c2ea1f930 100644 --- a/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml +++ b/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml @@ -328,4 +328,26 @@ ContentPage { } } } + + ContentSection { + icon: "work_alert" + title: Translation.tr("Work safety") + + ConfigSwitch { + buttonIcon: "assignment" + text: Translation.tr("Hide clipboard images copied from sussy sources") + checked: Config.options.workSafety.enable.clipboard + onCheckedChanged: { + Config.options.workSafety.enable.clipboard = checked; + } + } + ConfigSwitch { + buttonIcon: "wallpaper" + text: Translation.tr("Hide sussy/anime wallpapers") + checked: Config.options.workSafety.enable.wallpaper + onCheckedChanged: { + Config.options.workSafety.enable.wallpaper = checked; + } + } + } }