add ipc handlers for settings
This commit is contained in:
parent
a1fb6d330f
commit
2f6f940b76
7 changed files with 66 additions and 11 deletions
23
settings/Config.qml
Normal file
23
settings/Config.qml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
pragma Singleton
|
||||
import QtCore
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
property string font: "Adwaita Mono Nerd Font Propo"
|
||||
property int fontSize: 12
|
||||
property int barHeight: 30
|
||||
property int rounding: 0
|
||||
property url wallpaper: "file:///home/lucy/.walls/frierensuff.png"
|
||||
property bool floating: false
|
||||
Settings {
|
||||
|
||||
location: Qt.resolvedUrl("file:///home/lucy/.config/quickshell/settings/settings.ini")
|
||||
property alias font: root.font
|
||||
property alias fontSize: root.fontSize
|
||||
property alias barHeight: root.barHeight
|
||||
property alias roudning: root.rounding
|
||||
property alias wallpaper: root.wallpaper
|
||||
}
|
||||
}
|
||||
6
settings/settings.ini
Normal file
6
settings/settings.ini
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[General]
|
||||
barHeight=32
|
||||
font=0xProto Nerd Font Propo
|
||||
fontSize=12
|
||||
roudning=0
|
||||
wallpaper=@Variant(\0\0\0\x11\0\0\0\"file:///home/lucy/.walls/mooon.png)
|
||||
Loading…
Reference in a new issue