mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
labwc: use dms dpms off/on for idle service
This commit is contained in:
@@ -441,6 +441,7 @@ Singleton {
|
|||||||
if (isHyprland) return Hyprland.dispatch("dpms off")
|
if (isHyprland) return Hyprland.dispatch("dpms off")
|
||||||
if (isDwl) return _dwlPowerOffMonitors()
|
if (isDwl) return _dwlPowerOffMonitors()
|
||||||
if (isSway) { try { I3.dispatch("output * dpms off") } catch(_){} return }
|
if (isSway) { try { I3.dispatch("output * dpms off") } catch(_){} return }
|
||||||
|
if (isLabwc) { Quickshell.execDetached(["dms", "dpms", "off"]) }
|
||||||
console.warn("CompositorService: Cannot power off monitors, unknown compositor")
|
console.warn("CompositorService: Cannot power off monitors, unknown compositor")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -449,6 +450,7 @@ Singleton {
|
|||||||
if (isHyprland) return Hyprland.dispatch("dpms on")
|
if (isHyprland) return Hyprland.dispatch("dpms on")
|
||||||
if (isDwl) return _dwlPowerOnMonitors()
|
if (isDwl) return _dwlPowerOnMonitors()
|
||||||
if (isSway) { try { I3.dispatch("output * dpms on") } catch(_){} return }
|
if (isSway) { try { I3.dispatch("output * dpms on") } catch(_){} return }
|
||||||
|
if (isLabwc) { Quickshell.execDetached(["dms", "dpms", "on"]) }
|
||||||
console.warn("CompositorService: Cannot power on monitors, unknown compositor")
|
console.warn("CompositorService: Cannot power on monitors, unknown compositor")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user