make config use json instead of shitty qt implementation
This commit is contained in:
parent
4e294cb377
commit
31965a0dba
40 changed files with 272 additions and 745 deletions
10
modules/Services/#WallpaperService.qml#
Normal file
10
modules/Services/#WallpaperService.qml#
Normal 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
|
||||
}
|
||||
1
modules/Services/.#WallpaperService.qml
Symbolic link
1
modules/Services/.#WallpaperService.qml
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
lucy@nerv.1006:1787837190
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
pragma Singleton
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
import Quickshell.Pipewire
|
||||
|
||||
|
||||
|
||||
Singleton {
|
||||
property
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue