1waybar-sway-language(5) File Formats Manual waybar-sway-language(5)
2
3
4
6 waybar - sway language module
7
9 The language module displays the current keyboard layout in Sway
10
12 Addressed by sway/language
13
14 format:
15 typeof: string
16 default: {}
17 The format, how information should be displayed. On {} data gets
18 inserted.
19
20 rotate:
21 typeof: integer
22 Positive value to rotate the text label.
23
24 max-length:
25 typeof: integer
26 The maximum length in character the module should display.
27
28 min-length:
29 typeof: integer
30 The minimum length in characters the module should take up.
31
32 align:
33 typeof: float
34 The alignment of the text, where 0 is left-aligned and 1 is right-
35 aligned. If the module is rotated, it will follow the flow of the text.
36
37 on-click:
38 typeof: string
39 Command to execute when clicked on the module.
40
41 on-click-middle:
42 typeof: string
43 Command to execute when middle-clicked on the module using mouse‐
44 wheel.
45
46 on-click-right:
47 typeof: string
48 Command to execute when you right clicked on the module.
49
50 on-update:
51 typeof: string
52 Command to execute when the module is updated.
53
54 on-scroll-up:
55 typeof: string
56 Command to execute when scrolling up on the module.
57
58 on-scroll-down:
59 typeof: string
60 Command to execute when scrolling down on the module.
61
62 smooth-scrolling-threshold:
63 typeof: double
64 Threshold to be used when scrolling.
65
66 tooltip:
67 typeof: bool
68 default: true
69 Option to disable tooltip on hover.
70
72 "sway/language": {
73 "format": "{}",
74 "max-length": 50
75 }
76
78 • #language
79
80
81
82 2021-04-15 waybar-sway-language(5)