Add option to ignore certain apps in dock

This commit is contained in:
LOSEARDES77
2025-05-19 15:43:22 +02:00
parent 0e2252995c
commit a149abf9fe
2 changed files with 12 additions and 0 deletions
@@ -199,6 +199,7 @@
"firefox",
"org.gnome.Nautilus"
],
"ignoredAppsRegex": [],
"layer": "top",
"monitorExclusivity": true, // Dock will move to other monitor along with focus if enabled
"searchPinnedAppIcons": false, // Try to search for the correct icon if the app class isn't an icon name
+11
View File
@@ -119,6 +119,17 @@ const Taskbar = (monitor) => Widget.Box({
const client = Hyprland.clients[i];
if (client["pid"] == -1) return;
const appClass = substitute(client.class);
const ignoredAppsRegex = userOptions.dock.ignoredAppsRegex;
const isIgnored = false;
for (const regex of ignoredAppsRegex) {
if (!appClass.match(regex)) continue;
isIgnored = true;
break;
}
if (isIgnored) continue;
// for (const appName of userOptions.dock.pinnedApps) {
// if (appClass.includes(appName.toLowerCase()))
// return null;