Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat: set default values for windows/processes to ignore in UserConfig

Lars4d7665b8bc01
diff --git a/LarsWM.Core/UserConfigs/UserConfig.cs b/LarsWM.Core/UserConfigs/UserConfig.cs
index 1412efa6..52a74e09 100644
--- a/LarsWM.Core/UserConfigs/UserConfig.cs
+++ b/LarsWM.Core/UserConfigs/UserConfig.cs
@@ -6,9 +6,45 @@ namespace LarsWM.Core.UserConfigs
{
public class UserConfig
{
- public List<string> WindowClassesToIgnore = new List<string>();
+ // TODO: allow regular expressions
+ // eg. for WMP's "now playing" toolbar: StartsWith("WMP9MediaBarFlyout"))
+ public List<string> WindowClassesToIgnore = new List<string> {
+ // Tray on primary screen
+ "Shell_TrayWnd",
+ // Trays on secondary screens
+ "Shell_SecondaryTrayWnd",
+ // ??
+ "TaskManagerWindow",
+ // Microsoft Text Framework service IME
+ "MSCTFIME UI",
+ // Desktop window (holds wallpaper & desktop icons)
+ "SHELLDLL_DefView",
+ // Background for lock screen
+ "LockScreenBackstopFrame",
+ // ??
+ "Progman",
+ // Windows 7 open Start Menu
+ "DV2ControlHost",
+ // Some Windows 8 thing
+ "Shell_CharmWindow",
- public List<string> ProcessNamesToIgnore = new List<string>();
+ /*
+ * Consider adding:
+ * "MsgrIMEWindowClass", // Window live messenger notification
+ * "SysShadow", // Windows live messenger shadow-hack
+ * "Button", // UI component, e.g. Start Menu button
+ * "Frame Alternate Owner", // Edge
+ * "MultitaskingViewFrame", // The original Win + Tab view
+ */
+ };
+
+ public List<string> ProcessNamesToIgnore = new List<string> {
+ "SearchUI",
+ "ShellExperienceHost",
+ "LockApp",
+ "PeopleExperienceHost",
+ "StartMenuExperienceHost",
+ };
public int InnerGap = 20;
public int OuterGap = 20;
diff --git a/LarsWM.Core/UserConfigs/UserConfigService.cs b/LarsWM.Core/UserConfigs/UserConfigService.cs
index 66d23033..3ec9b85c 100644
--- a/LarsWM.Core/UserConfigs/UserConfigService.cs
+++ b/LarsWM.Core/UserConfigs/UserConfigService.cs
@@ -4,6 +4,7 @@ using System.Text;
namespace LarsWM.Core.UserConfigs
{
+ // TODO: Remove properties from this class once WindowsApiFacade & WindowsApiService use DI
public class UserConfigService
{
// TODO: allow regular expressions