mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
work safety: disabled by default, add toggle to settings app
This commit is contained in:
@@ -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<string> networkNameKeywords: ["airport", "cafe", "college", "company", "eduroam", "free", "guest", "public", "school", "university"]
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user