mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-04 20:48:29 -04:00
feat: lockscreen screen filter (#2740)
this makes use of the existing getFilteredScreens function to allow users to specify which displays the lockscreen should appear on. prior to this change, it was "all" or just one.
This commit is contained in:
@@ -196,9 +196,7 @@ Scope {
|
||||
property bool isActiveScreen: {
|
||||
if (Quickshell.screens.length <= 1)
|
||||
return true;
|
||||
if (SettingsData.lockScreenActiveMonitor === "all")
|
||||
return true;
|
||||
return currentScreenName === SettingsData.lockScreenActiveMonitor;
|
||||
return SettingsData.getFilteredScreens("lockScreen").includes(screen);
|
||||
}
|
||||
|
||||
color: isActiveScreen ? "transparent" : SettingsData.lockScreenInactiveColor
|
||||
|
||||
Reference in New Issue
Block a user