Window classes are identifiers used by KWin to distinguish different applications and window types. Better Blur DX uses window classes to determine which windows should have blur applied when using force blur functionality.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xarblu/kwin-effects-better-blur-dx/llms.txt
Use this file to discover all available pages before exploring further.
What Are Window Classes?
Every window in KWin has associated class information that typically includes:- Resource Class: The general application class (e.g.,
firefox,konsole) - Resource Name: A more specific identifier (e.g.,
Navigatorfor Firefox) - Window Title: The current title of the window (dynamic)
Method 1: Using qdbus (Recommended)
Theqdbus command-line tool provides the most comprehensive window information.
Run the query command
Click on the target window
Example Output
firefox or Navigator to target Firefox windows.
Method 2: Using Window Settings Dialog
KDE provides a graphical method to identify window classes through the window configuration dialog.Open special settings
Find the window class
resourceName resourceClassFor example: Navigator firefoxExtract the class name
Navigator firefox), you can use either:- The first word:
Navigator - The second word:
firefox - The entire string:
Navigator firefox(though usually unnecessary)
resourceClass (second word) is typically more reliable and recommended.Common Window Class Patterns
Applications with single-word class
Applications with single-word class
Applications with different resource name and class
Applications with different resource name and class
Applications with spaces in class names
Applications with spaces in class names
Method 3: Using xprop (X11 Only)
If you’re running KDE on X11, you can usexprop:
Using Window Classes in Better Blur DX
Once you’ve identified the window classes, add them to Better Blur DX configuration.Open Better Blur DX settings
Choose blur mode
- Blur matching windows (only these windows get blur)
- Blur all except matching (these windows DON’T get blur, everything else does)
Regex Pattern Matching
Better Blur DX supports regular expressions (regex) for more flexible window matching.Basic Regex Examples
Match multiple similar classes
Match multiple similar classes
jetbrains-pycharmjetbrains-ideajetbrains-webstorm- etc.
Case-insensitive matching
Case-insensitive matching
firefox, Firefox, FIREFOX, etc.Match multiple specific applications
Match multiple specific applications
Match windows with specific patterns
Match windows with specific patterns
gnome-terminalxfce4-terminallxterminal- etc.
Regex Syntax Reference
| Pattern | Description | Example |
|---|---|---|
. | Any single character | k.te matches kate |
* | Zero or more of previous | fire.* matches firefox, firewall |
+ | One or more of previous | fire+ matches fire, firee |
^ | Start of string | ^konsole matches only if starts with “konsole” |
$ | End of string | dolphin$ matches only if ends with “dolphin” |
| | OR operator | (kate|kwrite) matches either |
[abc] | Any character in set | [kd]ate matches kate or date |
[^abc] | Any character NOT in set | [^k]ate matches date but not kate |
(?i) | Case insensitive | (?i)firefox matches any case |
Common Window Classes Reference
Here’s a quick reference of common KDE and third-party application window classes:KDE Applications
Common Third-Party Applications
Special Window Types
Plasma components
Plasma components
Dialogs and menus
Dialogs and menus
Troubleshooting
Window class doesn't seem to work
Window class doesn't seem to work
- Verify the class name is exactly correct (case-sensitive)
- Make sure there are no extra spaces or special characters
- Try using the other value (resourceName vs resourceClass)
- Check if the window provides its own blur region (force blur won’t override this)
- Restart KWin after making changes: logout/login or
kwin_wayland --replace &
Some windows of the same application blur, others don't
Some windows of the same application blur, others don't
- Check each window individually with
qdbus - Add all relevant classes to the list
- Consider using regex to match multiple related classes
Regex pattern doesn't match as expected
Regex pattern doesn't match as expected
- Test your regex pattern with an online regex tester
- Remember that regex is case-sensitive by default (use
(?i)for case-insensitive) - Escape special characters with backslash:
\.,\(,\), etc. - Start simple and gradually add complexity
Can't run qdbus command
Can't run qdbus command
Best Practices
Use resourceClass when available
resourceClass (typically the second value) is usually more reliable than resourceName for identifying applications consistently.Test one class at a time
Document your regex patterns
Consider performance