add ipc handlers for settings

This commit is contained in:
lucy 2026-05-14 19:47:31 +02:00
commit 2f6f940b76
7 changed files with 66 additions and 11 deletions

23
settings/Config.qml Normal file
View 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
View 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)