Sure! Let's break down the expression:
🔍 Expression:
"class<firefox> title<.*chat.gig.tech.*>": ""
This expression is matching rules for a window, and it's often used in tiling window managers or status bars (like i3, bspwm, polybar, xmonad, etc.) to customize icons or window displays based on window class and title.
🧠 Breakdown:
🔸 class<firefox>
class<...> matches the window class name, which usually identifies the application.
- Here, the window class is
firefox, so this expression applies only to Firefox browser windows.
🔸 title<.*chat.gig.tech.*>
title<...> matches the window title using a regular expression.
.*chat.gig.tech.* means it matches any window title containing "chat.gig.tech", like:
Dashboard - chat.gig.tech - Mozilla Firefox
chat.gig.tech | Support Console - Mozilla Firefox
This is a case where a web app (like a support chat or internal tool) is running in Firefox, and you want to distinguish this specific web site from others.
📥 Matched Output:
""
is a Font Awesome icon—for a speech bubble or chat symbol.
- The rule replaces the window title with this icon, typically in a status bar, to give a compact and recognizable indicator.
✅ Example Use:
In a tool like i3status, polybar, or custom scripting with xprop or xdo, you might configure rules like this to clean up your workspace labels or window titles.
🔧 Example in practice:
Original window:
- Class:
firefox
- Title:
"Support chat - chat.gig.tech - Mozilla Firefox"
After applying rule:
✨ Summary:
This rule:
- Applies to Firefox windows
- Only if the title contains
chat.gig.tech
- Replaces the window label with the chat icon
- Helps you visually identify chat tools or specific web apps in your browser, especially when multiple Firefox windows are open.
Let me know if you want help writing more of these!