|
1 | 1 | {
|
2 | 2 | "anchor_to_edges": true,
|
| 3 | + "position": "bottom", |
| 4 | + "icon_theme": "Paper", |
| 5 | + "start": [ |
| 6 | + { |
| 7 | + "type": "workspaces", |
| 8 | + "all_monitors": false, |
| 9 | + "name_map": { |
| 10 | + "1": "", |
| 11 | + "2": "icon:firefox", |
| 12 | + "3": "", |
| 13 | + "Games": "icon:steam", |
| 14 | + "Code": "" |
| 15 | + } |
| 16 | + }, |
| 17 | + { |
| 18 | + "type": "launcher", |
| 19 | + "favorites": [ |
| 20 | + "firefox", |
| 21 | + "discord", |
| 22 | + "steam" |
| 23 | + ], |
| 24 | + "show_names": false, |
| 25 | + "show_icons": true |
| 26 | + }, |
| 27 | + { |
| 28 | + "type": "label", |
| 29 | + "label": "random num: {{500:echo FIXME}}" |
| 30 | + } |
| 31 | + ], |
3 | 32 | "end": [
|
4 | 33 | {
|
5 |
| - "music_dir": "/home/jake/Music", |
| 34 | + "type": "music", |
6 | 35 | "player_type": "mpd",
|
| 36 | + "music_dir": "/home/jake/Music", |
7 | 37 | "truncate": {
|
8 |
| - "max_length": 100, |
9 |
| - "mode": "end" |
10 |
| - }, |
11 |
| - "type": "music" |
| 38 | + "mode": "end", |
| 39 | + "max_length": 100 |
| 40 | + } |
12 | 41 | },
|
13 | 42 | {
|
14 |
| - "host": "chloe:6600", |
| 43 | + "type": "music", |
15 | 44 | "player_type": "mpd",
|
16 |
| - "truncate": "end", |
17 |
| - "type": "music" |
| 45 | + "host": "chloe:6600", |
| 46 | + "truncate": "end" |
18 | 47 | },
|
19 | 48 | {
|
| 49 | + "type": "script", |
20 | 50 | "cmd": "/home/jake/bin/phone-battery",
|
21 | 51 | "show_if": {
|
22 | 52 | "cmd": "/home/jake/bin/phone-connected",
|
23 | 53 | "interval": 500
|
24 |
| - }, |
25 |
| - "type": "script" |
| 54 | + } |
26 | 55 | },
|
27 | 56 | {
|
| 57 | + "type": "sys_info", |
| 58 | + "interval": { |
| 59 | + "memory": 30, |
| 60 | + "cpu": 1, |
| 61 | + "temps": 5, |
| 62 | + "disks": 300, |
| 63 | + "networks": 3 |
| 64 | + }, |
28 | 65 | "format": [
|
29 | 66 | " {cpu_percent}% | {temp_c:k10temp_Tccd1}°C",
|
30 | 67 | " {memory_used} / {memory_total} GB ({memory_percent}%)",
|
|
33 | 70 | " {net_down:enp39s0} / {net_up:enp39s0} Mbps",
|
34 | 71 | " {load_average:1} | {load_average:5} | {load_average:15}",
|
35 | 72 | " {uptime}"
|
36 |
| - ], |
37 |
| - "interval": { |
38 |
| - "cpu": 1, |
39 |
| - "disks": 300, |
40 |
| - "memory": 30, |
41 |
| - "networks": 3, |
42 |
| - "temps": 5 |
43 |
| - }, |
44 |
| - "type": "sys_info" |
| 73 | + ] |
| 74 | + }, |
| 75 | + { |
| 76 | + "type": "volume", |
| 77 | + "format": "{icon} {volume}%", |
| 78 | + "max_volume": 100, |
| 79 | + "icons": { |
| 80 | + "volume_high": "", |
| 81 | + "volume_medium": "", |
| 82 | + "volume_low": "", |
| 83 | + "muted": "" |
| 84 | + } |
45 | 85 | },
|
46 | 86 | {
|
| 87 | + "type": "clipboard", |
47 | 88 | "max_items": 3,
|
48 | 89 | "truncate": {
|
49 |
| - "length": 50, |
50 |
| - "mode": "end" |
51 |
| - }, |
52 |
| - "type": "clipboard" |
| 90 | + "mode": "end", |
| 91 | + "length": 50 |
| 92 | + } |
53 | 93 | },
|
54 | 94 | {
|
| 95 | + "type": "custom", |
| 96 | + "class": "power-menu", |
55 | 97 | "bar": [
|
56 | 98 | {
|
57 |
| - "label": "", |
| 99 | + "type": "button", |
58 | 100 | "name": "power-btn",
|
59 |
| - "on_click": "popup:toggle", |
60 |
| - "type": "button" |
| 101 | + "label": "", |
| 102 | + "on_click": "popup:toggle" |
61 | 103 | }
|
62 | 104 | ],
|
63 |
| - "class": "power-menu", |
64 | 105 | "popup": [
|
65 | 106 | {
|
66 |
| - "orientation": "vertical", |
67 | 107 | "type": "box",
|
| 108 | + "orientation": "vertical", |
68 | 109 | "widgets": [
|
69 | 110 | {
|
70 |
| - "label": "Power menu", |
| 111 | + "type": "label", |
71 | 112 | "name": "header",
|
72 |
| - "type": "label" |
| 113 | + "label": "Power menu" |
73 | 114 | },
|
74 | 115 | {
|
75 | 116 | "type": "box",
|
76 | 117 | "widgets": [
|
77 | 118 | {
|
| 119 | + "type": "button", |
78 | 120 | "class": "power-btn",
|
79 | 121 | "label": "<span font-size='40pt'></span>",
|
80 |
| - "on_click": "!shutdown now", |
81 |
| - "type": "button" |
| 122 | + "on_click": "!shutdown now" |
82 | 123 | },
|
83 | 124 | {
|
| 125 | + "type": "button", |
84 | 126 | "class": "power-btn",
|
85 | 127 | "label": "<span font-size='40pt'></span>",
|
86 |
| - "on_click": "!reboot", |
87 |
| - "type": "button" |
| 128 | + "on_click": "!reboot" |
88 | 129 | }
|
89 | 130 | ]
|
90 | 131 | },
|
91 | 132 | {
|
92 |
| - "label": "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}", |
| 133 | + "type": "label", |
93 | 134 | "name": "uptime",
|
94 |
| - "type": "label" |
| 135 | + "label": "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}" |
95 | 136 | }
|
96 | 137 | ]
|
97 | 138 | }
|
98 | 139 | ],
|
99 |
| - "tooltip": "Up: {{30000:uptime -p | cut -d ' ' -f2-}}", |
100 |
| - "type": "custom" |
| 140 | + "tooltip": "Up: {{30000:uptime -p | cut -d ' ' -f2-}}" |
101 | 141 | },
|
102 | 142 | {
|
103 | 143 | "type": "clock"
|
104 | 144 | }
|
105 |
| - ], |
106 |
| - "icon_theme": "Paper", |
107 |
| - "position": "bottom", |
108 |
| - "start": [ |
109 |
| - { |
110 |
| - "all_monitors": false, |
111 |
| - "name_map": { |
112 |
| - "1": "", |
113 |
| - "2": "icon:firefox", |
114 |
| - "3": "", |
115 |
| - "Code": "", |
116 |
| - "Games": "icon:steam" |
117 |
| - }, |
118 |
| - "type": "workspaces" |
119 |
| - }, |
120 |
| - { |
121 |
| - "favorites": [ |
122 |
| - "firefox", |
123 |
| - "discord", |
124 |
| - "steam" |
125 |
| - ], |
126 |
| - "show_icons": true, |
127 |
| - "show_names": false, |
128 |
| - "type": "launcher" |
129 |
| - }, |
130 |
| - { |
131 |
| - "label": "random num: {{500:echo FIXME}}", |
132 |
| - "type": "label" |
133 |
| - } |
134 | 145 | ]
|
135 | 146 | }
|
0 commit comments