mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
switch hto monorepo structure
This commit is contained in:
33
quickshell/shell.qml
Normal file
33
quickshell/shell.qml
Normal file
@@ -0,0 +1,33 @@
|
||||
//@ pragma Env QSG_RENDER_LOOP=threaded
|
||||
//@ pragma Env QT_MEDIA_BACKEND=ffmpeg
|
||||
//@ pragma Env QT_FFMPEG_DECODING_HW_DEVICE_TYPES=vaapi
|
||||
//@ pragma Env QT_FFMPEG_ENCODING_HW_DEVICE_TYPES=vaapi
|
||||
//@ pragma UseQApplication
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
|
||||
ShellRoot {
|
||||
id: entrypoint
|
||||
|
||||
readonly property bool runGreeter: Quickshell.env("DMS_RUN_GREETER") === "1" || Quickshell.env("DMS_RUN_GREETER") === "true"
|
||||
readonly property bool disableHotReload: Quickshell.env("DMS_DISABLE_HOT_RELOAD") === "1" || Quickshell.env("DMS_DISABLE_HOT_RELOAD") === "true"
|
||||
|
||||
Component.onCompleted: {
|
||||
Quickshell.watchFiles = !disableHotReload;
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: dmsShellLoader
|
||||
asynchronous: false
|
||||
sourceComponent: DMSShell {}
|
||||
active: !entrypoint.runGreeter
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: dmsGreeterLoader
|
||||
asynchronous: false
|
||||
sourceComponent: DMSGreeter {}
|
||||
active: entrypoint.runGreeter
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user