2026-03-08 12:13:35 +01:00
|
|
|
pragma Singleton
|
|
|
|
|
import Quickshell
|
|
|
|
|
import Quickshell.Io
|
|
|
|
|
|
|
|
|
|
Singleton {
|
|
|
|
|
id: root
|
|
|
|
|
property alias config: settingsAdapter
|
|
|
|
|
FileView {
|
|
|
|
|
id: settingsView
|
|
|
|
|
path: "file:///home/lucy/.config/qs.json"
|
2026-03-09 10:02:44 +01:00
|
|
|
onFileChanged: reload()
|
|
|
|
|
watchChanges: true
|
2026-03-08 12:13:35 +01:00
|
|
|
adapter: JsonAdapter {
|
|
|
|
|
id: settingsAdapter
|
2026-03-09 10:02:44 +01:00
|
|
|
property int barHeight
|
|
|
|
|
property int rounding
|
2026-03-08 12:13:35 +01:00
|
|
|
property bool floating
|
|
|
|
|
property string font
|
2026-03-09 10:02:44 +01:00
|
|
|
property int fontSize
|
|
|
|
|
property int margins
|
2026-03-09 19:32:44 +01:00
|
|
|
property var currentWall
|
2026-03-08 12:13:35 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|