diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-15 18:08:45 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-15 18:08:45 +1000 |
| commit | 96429160c30ba5f6dcd25c8e6a181221195c41d8 (patch) | |
| tree | 6f95bac8f3056abae67c04ae612b574ce1c37286 /config/LauncherConfig.qml | |
| parent | internal: properly fix beat detector (diff) | |
| download | caelestia-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/LauncherConfig.qml')
| -rw-r--r-- | config/LauncherConfig.qml | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/config/LauncherConfig.qml b/config/LauncherConfig.qml index 18489f7..987e634 100644 --- a/config/LauncherConfig.qml +++ b/config/LauncherConfig.qml @@ -1,18 +1,14 @@ -pragma Singleton +import Quickshell.Io -import Quickshell -import QtQuick +JsonObject { + property int maxShown: 8 + property int maxWallpapers: 9 // Warning: even numbers look bad + property string actionPrefix: ">" -Singleton { - readonly property int maxShown: 8 - readonly property int maxWallpapers: 9 // Warning: even numbers look bad - readonly property string actionPrefix: ">" - readonly property Sizes sizes: Sizes {} - - component Sizes: QtObject { - readonly property int itemWidth: 600 - readonly property int itemHeight: 57 - readonly property int wallpaperWidth: 280 - readonly property int wallpaperHeight: 200 + property JsonObject sizes: JsonObject { + property int itemWidth: 600 + property int itemHeight: 57 + property int wallpaperWidth: 280 + property int wallpaperHeight: 200 } } |