20 lines
518 B
QML
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);
|
|
}
|
|
}
|