quickshell and hyprland additions

This commit is contained in:
2026-03-15 13:56:00 +02:00
parent c9c27d1554
commit 1ad06b82a6
509 changed files with 68371 additions and 19 deletions

View File

@@ -0,0 +1,20 @@
pragma Singleton
import Quickshell
Singleton {
function testRegexList(filterList: list<string>, target: string): bool {
const regexChecker = /^\^.*\$$/;
for (const filter of filterList) {
// If filter is a regex
if (regexChecker.test(filter)) {
if ((new RegExp(filter)).test(target))
return true;
} else {
if (filter === target)
return true;
}
}
return false;
}
}