2026-01-14 23:18:18 +01:00
|
|
|
pragma Singleton
|
|
|
|
|
pragma ComponentBehavior: Bound
|
|
|
|
|
import QtQuick
|
|
|
|
|
import Quickshell
|
|
|
|
|
import Quickshell.Io
|
|
|
|
|
|
|
|
|
|
Singleton {
|
|
|
|
|
id: settings
|
|
|
|
|
property alias config: settingsAdapter
|
|
|
|
|
onConfigChanged: {
|
|
|
|
|
settingsView.writeAdapter();
|
|
|
|
|
}
|
|
|
|
|
FileView {
|
|
|
|
|
id: settingsView
|
|
|
|
|
|
|
|
|
|
path: "/home/lucy/.config/quickshell/settings/config.json"
|
|
|
|
|
watchChanges: true
|
|
|
|
|
Component.onCompleted: {
|
|
|
|
|
settingsView.writeAdapter();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
adapter: JsonAdapter {
|
|
|
|
|
id: settingsAdapter
|
2026-01-15 15:14:29 +01:00
|
|
|
property var currentWall: "/home/lucy/.walls/faris.jpg"
|
2026-01-16 14:44:10 +01:00
|
|
|
property var barHeight: 28
|
2026-01-14 23:18:18 +01:00
|
|
|
property var font: "JetBrainsMono Nerd Font"
|
2026-01-15 01:13:17 +01:00
|
|
|
property var fontSize: 12
|
2026-01-14 23:18:18 +01:00
|
|
|
property var rounding: 10
|
|
|
|
|
property var wallDir: "/home/lucy/.walls"
|
2026-01-15 01:13:17 +01:00
|
|
|
property bool floating: true
|
|
|
|
|
property int paddingTop: 10
|
|
|
|
|
property int paddingSides: 10
|
2026-01-14 23:18:18 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|