summaryrefslogtreecommitdiff
path: root/config/NotifsConfig.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-15 18:08:45 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-15 18:08:45 +1000
commit96429160c30ba5f6dcd25c8e6a181221195c41d8 (patch)
tree6f95bac8f3056abae67c04ae612b574ce1c37286 /config/NotifsConfig.qml
parentinternal: properly fix beat detector (diff)
downloadcaelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.tar.gz
caelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.tar.bz2
caelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.zip
feat: user config file
Config file at `~/.config/caelestia/shell.json`
Diffstat (limited to 'config/NotifsConfig.qml')
-rw-r--r--config/NotifsConfig.qml26
1 files changed, 11 insertions, 15 deletions
diff --git a/config/NotifsConfig.qml b/config/NotifsConfig.qml
index 34b9226..f84def2 100644
--- a/config/NotifsConfig.qml
+++ b/config/NotifsConfig.qml
@@ -1,19 +1,15 @@
-pragma Singleton
+import Quickshell.Io
-import Quickshell
-import QtQuick
+JsonObject {
+ property bool expire: false
+ property int defaultExpireTimeout: 3000
+ property real clearThreshold: 0.3
+ property int expandThreshold: 20
+ property bool actionOnClick: false
-Singleton {
- readonly property bool expire: false
- readonly property int defaultExpireTimeout: 3000
- readonly property real clearThreshold: 0.3
- readonly property int expandThreshold: 20
- readonly property bool actionOnClick: false
- readonly property Sizes sizes: Sizes {}
-
- component Sizes: QtObject {
- readonly property int width: 400
- readonly property int image: 41
- readonly property int badge: 20
+ property JsonObject sizes: JsonObject {
+ property int width: 400
+ property int image: 41
+ property int badge: 20
}
}