Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit ea07d01

Browse files
committed
hyprland
1 parent d270e75 commit ea07d01

File tree

1 file changed

+18
-35
lines changed

1 file changed

+18
-35
lines changed

data/doc/4.widgets/6.hyprland-workspace.md renamed to data/doc/4.widgets/6.hypr-workspace.md

Lines changed: 18 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,26 @@
44

55
```json
66
{
7-
"type": "hyprland-workspace",
8-
"thickness": 15,
9-
"length": "25%",
10-
"frame_rate": 144,
11-
"hover_color": "#ffffff55"
7+
"edge": "top",
8+
"position": "right",
9+
"layer": "overlay",
10+
"monitor": "HDMI-A-1",
11+
"widget": {
12+
"type": "hypr-workspace",
13+
"thickness": 25,
14+
"length": "25%",
15+
"hover_color": "#ffffff22",
16+
"active_increase": 0.2,
17+
"active_color": "#6B8EF0",
18+
"deactive_color": "#000"
19+
}
1220
}
1321
```
1422

1523
## `type*`
1624

1725
```plaintext
18-
const `hyprland-workspace`
26+
const `hypr-workspace`
1927
```
2028

2129
## `thickness*`
@@ -57,16 +65,6 @@ Milliseconds(ms).
5765
_Type: `int`_
5866
_Default: `300`_
5967

60-
## `backlight`
61-
62-
Color of the background.
63-
64-
Support: `#rgb`/`#rrggbb`/`#rrrgggbbb`/`rgb(r, g, b)`/`rgba(r, g, b, a)`...
65-
For full info, check [RGBA](https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gdk4/rgba.rs.html#205)
66-
67-
_Type: `null | string`_
68-
_Default: `null`_
69-
7068
## `deactive_color`
7169

7270
Color of the non-active workspace.
@@ -95,24 +93,9 @@ For full info, check [RGBA](https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gd
9593
_Type: `null | string`_
9694
_Default: `null`_
9795

98-
## `frame_rate`
99-
100-
Frame rate per second, won't hurt if over screen refresh rate.
96+
## `invert_direction`
10197

102-
_Type: `int`_
103-
_Default: `60`_
104-
105-
## `transition_duration`
106-
107-
Time cost of showing the widget from the edge.
108-
Millisecond.
109-
110-
_Type: `int`_
111-
_Default: `100`_
98+
left -> right
99+
top -> bottom
112100

113-
## `extra_trigger_size`
114-
115-
Extra mouse event input region of the widget, if `0` then the widget won't be shown by mouse hover.
116-
117-
_Type: `int | string`_
118-
_Default: `5`_
101+
`bool`

0 commit comments

Comments
 (0)