1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -05:00

plugins/desktop-widgets: create a new "desktop" widget plugin type

- Draggable per-monitor background layer widgets
- Add basic dms version checks on plugins
- Clock: built-in clock desktop plugin
- dgop: built-in system monitor desktop plugin
This commit is contained in:
bbedward
2025-12-17 12:08:03 -05:00
parent d082d41ab9
commit 0034926df7
27 changed files with 4135 additions and 62 deletions

View File

@@ -983,9 +983,10 @@ Singleton {
if (output.logical.x !== undefined && output.logical.y !== undefined)
kdlContent += ` position x=${output.logical.x} y=${output.logical.y}\n`;
}
if (output.vrr_enabled) {
const vrrOnDemand = settings.vrrOnDemand ?? false;
kdlContent += vrrOnDemand ? ` variable-refresh-rate on-demand=true\n` : ` variable-refresh-rate\n`;
if (settings.vrrOnDemand) {
kdlContent += ` variable-refresh-rate on-demand=true\n`;
} else if (output.vrr_enabled) {
kdlContent += ` variable-refresh-rate\n`;
}
if (settings.focusAtStartup)
kdlContent += ` focus-at-startup\n`;