GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
waybar-hyprland-window(5) FreeBSD File Formats Manual waybar-hyprland-window(5)

waybar - hyprland window module

The window module displays the title of the currently focused window in Hyprland.

Addressed by hyprland/window

format:
typeof: string
default: {title}
The format, how information should be displayed. On {} the current window title is displayed.

rewrite:
typeof: object
Rules to rewrite window title. See rewrite rules.

separate-outputs:
typeof: bool
Show the active window of the monitor the bar belongs to, instead of the focused window.

icon:
typeof: bool
default: false
Option to hide the application icon.

icon-size:
typeof: integer
default: 24
Option to change the size of the application icon.

expand:
typeof: bool
default: false
Enables this module to consume all left over space dynamically.

See the output of "hyprctl clients" for examples

{title}: The current title of the focused window.

{initialTitle}: The initial title of the focused window.

{class}: The current class of the focused window.

{initialClass}: The initial class of the focused window.

rewrite is an object where keys are regular expressions and values are rewrite rules if the expression matches. Rules may contain references to captures of the expression.

Regular expression and replacement follow ECMA-script rules.

If no expression matches, the title is left unchanged.

Invalid expressions (e.g., mismatched parentheses) are skipped.

"hyprland/window": {
	"format": "{}",
	"rewrite": {
		"(.*) - Mozilla Firefox": "🌎 $1",
		"(.*) - zsh": "> [$1]"
	}
}

  • #window
  • window#waybar.empty #window When no windows are in the workspace

The following classes are applied to the entire Waybar rather than just the window widget:

  • window#waybar.empty When no windows are in the workspace
  • window#waybar.solo When one tiled window is visible in the workspace (floating windows may be present)
  • window#waybar.<app_id> Where <app_id> is the class (e.g. chromium) of the solo tiled window in the workspace (use hyprctl clients to see classes)
  • window#waybar.floating When there are only floating windows in the workspace
  • window#waybar.fullscreen When there is a fullscreen window in the workspace; useful with Hyprland's fullscreen, 1 mode
  • window#waybar.swallowing When there is a swallowed window in the workspace
2025-07-19

Search for    or go to Top of page |  Section 5 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.