1waybar-sway-window(5) File Formats Manual waybar-sway-window(5)
2
3
4
6 waybar - sway window module
7
9 The window module displays the title of the currently focused window in
10 Sway
11
13 Addressed by sway/window
14
15 format:
16 typeof: string
17 default: {}
18 The format, how information should be displayed. On {} data gets
19 inserted.
20
21 rotate:
22 typeof: integer
23 Positive value to rotate the text label.
24
25 max-length:
26 typeof: integer
27 The maximum length in character the module should display.
28
29 on-click:
30 typeof: string
31 Command to execute when clicked on the module.
32
33 on-click-middle:
34 typeof: string
35 Command to execute when middle-clicked on the module using mouse‐
36 wheel.
37
38 on-click-right:
39 typeof: string
40 Command to execute when you right clicked on the module.
41
42 on-update:
43 typeof: string
44 Command to execute when the module is updated.
45
46 on-scroll-up:
47 typeof: string
48 Command to execute when scrolling up on the module.
49
50 on-scroll-down:
51 typeof: string
52 Command to execute when scrolling down on the module.
53
54 smooth-scrolling-threshold:
55 typeof: double
56 Threshold to be used when scrolling.
57
58 tooltip:
59 typeof: bool
60 default: true
61 Option to disable tooltip on hover.
62
64 "sway/window": {
65 "format": "{}",
66 "max-length": 50
67 }
68
70 · #window
71 · window#waybar.empty When no windows is in the workspace
72 · window#waybar.solo When one window is in the workspace
73 · window#waybar.<app_id> Where app_id is the app_id or instance name
74 like (chromium) of the only window in the workspace
75
76
77
78 2021-02-10 waybar-sway-window(5)