mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 13:32:50 -05:00
templates, respect XDG paths - Add Hyprland and MangoWC templates - Add GUI gaps, window radius, and border thickness overrides for niri, Hyprland, and MangoWC - Add replacement support in matugen templates for DATA_DIR, CACHE_DIR, CONFIG_DIR fixes #1274 fixes #1273
36 lines
1.0 KiB
QML
36 lines
1.0 KiB
QML
//@ 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 Env QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
|
//@ pragma Env QT_QUICK_CONTROLS_STYLE=Material
|
|
//@ 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
|
|
}
|
|
}
|