@@ -17,23 +17,28 @@ Add it to your file:
1717
1818``` json
1919{
20- "groups" : {
21- "type" : " array" ,
22- "items" : {
23- "type" : " object" ,
24- "properties" : {
25- "name" : {
26- "type" : " string"
27- },
28- "widgets" : {
29- "type" : " array" ,
30- "items" : {
31- ...
20+ "groups" : [
21+ {
22+ "name" : " hyprland" ,
23+ "widgets" : [
24+ {
25+ "edge" : " top" ,
26+ "position" : " right" ,
27+ "layer" : " overlay" ,
28+ "monitor" : " HDMI-A-1" ,
29+ "widget" : {
30+ "type" : " hypr-workspace" ,
31+ "thickness" : 25 ,
32+ "length" : " 25%" ,
33+ "hover_color" : " #ffffff22" ,
34+ "active_increase" : 0.2 ,
35+ "active_color" : " #6B8EF0" ,
36+ "deactive_color" : " #000"
3237 }
3338 }
34- }
39+ ]
3540 }
36- }
41+ ]
3742}
3843```
3944
@@ -44,47 +49,46 @@ Array of group objects, each group object contains `group name` and `widgets` ar
4449| name | name of the group |
4550| widgets | group of widget items, please check [ Widget item] ( #widget-item ) |
4651
47- _ Example:_
48-
49- ``` json
50- {
51- "groups" : [
52- {
53- "name" : " example" ,
54- "widgets" : []
55- }
56- ]
57- }
58- ```
59-
6052## Widget item
6153
6254Array of widget items. If multiple widgets pile up, the last one in array gets to be on the top.
6355
64- | Name | Description |
65- | --------------- | ----------------------------------------------------------------------- |
66- | name | Name of the widget, needed with ` togglepin ` |
67- | edge | Edge of the screen, ` top/bottom/left/right ` |
68- | position | Ancher of the edge, ` top/bottom \|\| left/right ` |
69- | layer | Layer of the shell (window), ` top/bottom/background/overlay ` |
70- | margins | Support relative number ("24%"), ` top/bottom/left/right ` |
71- | monitor | Monitor index, or the connector name of the monitor, index start from 0 |
72- | ignore_exlusive | whether to overlap with other layershell. |
73- | widget | the actual widget, goto ` widgets ` |
56+ | Name | Description |
57+ | ------------------- | ------------------------------------------------------------------------------ |
58+ | name | Name of the widget, needed with ` togglepin ` |
59+ | edge | Edge of the screen, ` top/bottom/left/right ` |
60+ | position | Ancher of the edge, ` top/bottom \|\| left/right ` |
61+ | layer | Layer of the shell (window), ` top/bottom/background/overlay ` |
62+ | margins | Support relative number ("24%"), ` top/bottom/left/right ` |
63+ | monitor | Monitor index, or the connector name of the monitor, index start from 0 |
64+ | ignore_exlusive | whether to overlap with other layershell. |
65+ | transition_duration | widget pop up duration. |
66+ | frame_rate | default to your monitor refresh rate, you should not change it normally. |
67+ | extra_trigger_size | the extra size for trigger popup, default 1, this does not need to be changed. |
68+ | preview_size | reveal some part of the widget, default 0. |
69+ | widget | the actual widget, goto ` widgets ` |
7470
7571_ Example:_
7672
77- ``` json
73+ ``` jsonc
7874{
7975 " edge" : " top" ,
80- "position" : " left" ,
81- // "monitor": "eDP-1",
82- "layer" : " overlay" ,
76+ " position" : " left" , // or bottom, top, right
77+ " monitor" : 0 , // or "eDP-1"
78+ " layer" : " overlay" , // top bottom background overlay
8379 " margins" : {
84- "left" : " 25%"
80+ " left" : " 25%" ,
81+ " right" : " 25%" ,
82+ " top" : " 25%" ,
83+ " bottom" : " 25%" ,
8584 },
85+ " ignore_exlusive" : true ,
86+ " transition_duration" : 200 ,
87+ " frame_rate" : 144 ,
88+ " extra_trigger_size" : 5 ,
89+ " preview_size" : 20 , // or "100%"
8690 " widget" : {
8791 // check `Widgets` config
88- }
92+ },
8993}
9094```
0 commit comments