make config use json instead of shitty qt implementation

This commit is contained in:
lucy 2026-08-27 18:10:37 +02:00
commit 31965a0dba
40 changed files with 272 additions and 745 deletions

View file

@ -0,0 +1,10 @@
pragma Singleton
import Quickshell
import qs
import qs.settings
Singleton {
id: root
readonly property url wallDir: Config.wallDir
property url currentWallpaper: Config.wallpaper
}

View file

@ -0,0 +1 @@
lucy@nerv.1006:1787837190

View file

@ -1,10 +0,0 @@
pragma Singleton
import Quickshell
import QtQuick
import Quickshell.Pipewire
Singleton {
property
}

View file

@ -1,21 +0,0 @@
pragma Singleton
import Quickshell
import Quickshell.Networking
Singleton {
id: root
property bool wifiEnabled: Networking.wifiEnabled
property string connectivity: Networking.connectivity.toString(Networking.connectivity)
readonly property list<NetworkDevice> devices: Networking.devices.values
function getConnectedDevice() {
for(let i=0; i < devices.length; ++i) {
console.log(i)
if(devices[i].connected) {
return devices[i];
}
return null;
}
}
}