nosignal-shell/services/Screens.qml
2 * r + 2 * t c1795d187a feat: add excluded screens config opt
Completely disables everything (except lock) for screen
2026-03-13 00:25:58 +11:00

20 lines
518 B
QML

pragma Singleton
import qs.config
import qs.utils
import Quickshell
Singleton {
id: root
readonly property list<ShellScreen> screens: {
const excluded = Config.general.excludedScreens;
if (excluded.length === 0)
return Quickshell.screens;
return Quickshell.screens.filter(s => !Strings.testRegexList(excluded, s.name));
}
function isExcluded(screen: ShellScreen): bool {
return Strings.testRegexList(Config.general.excludedScreens, screen.name);
}
}