31 lines
777 B
QML
31 lines
777 B
QML
pragma ComponentBehavior: Bound
|
|
pragma Singleton
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
|
|
Singleton {
|
|
id: root
|
|
property alias config: settingsAdapter
|
|
FileView {
|
|
id: settingsView
|
|
path: "file:///home/lucy/.config/quickshell/settings/settings.json"
|
|
onFileChanged: reload()
|
|
onAdapterUpdated: writeAdapter()
|
|
|
|
watchChanges: true
|
|
|
|
adapter: JsonAdapter {
|
|
id: settingsAdapter
|
|
property int barHeight
|
|
property int rounding
|
|
property bool floating
|
|
property string font
|
|
property int fontSize
|
|
property int margins
|
|
property var currentWall
|
|
property bool wallswitchershown
|
|
property int barmargins
|
|
}
|
|
}
|
|
}
|