1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
{
"layer": "top",
"modules-left": [
"river/tags"
],
"modules-center": ["river/window"],
"modules-right": [
"custom/network",
"custom/cpuTemp",
"battery",
"custom/powerUsage",
"pulseaudio",
"tray",
"custom/date"
],
"pulseaudio": {
"tooltip": false,
"scroll-step": 5,
"format": "vol: {volume}%",
"format-muted": "vol 0%"
},
"river/tags": {
"tag-labels":[
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"0"
],
"disable-click": false,
"num-tags": 10
},
"river/window": {
"format": "{}",
"max-length": 90
},
"battery": {
"states": {
"good": 100,
"warning": 30,
"critical": 20
},
"format": "bat: {capacity}% discharging",
"format-charging": "bat: {capacity}% charging",
"format-plugged": "bat: {capacity}% AC"
},
"tray":{
"icon-size":18,
"show-passive-items":true,
"spacing": 10,
"reverse-direction": true
},
"custom/network": {
"class": "network",
"format": "{}",
"interval": 5,
"exec": "$HOME/.config/waybar/custom/network"
},
"custom/cpuTemp": {
"class": "cpuTemp",
"format": " CPU: {}c",
"exec": "sensors | sed -n '/^k10/,/^$/p' | awk '/^Tctl/{print $2}' | sed -e's/+//g' -e's/\\.[0-9][^0-9]*$//g'",
"interval": 5
},
"custom/powerUsage": {
"class": "powerUsage",
"format": " {}",
"interval": 5,
"exec": "awk '{p=$1*10^-6; if (p>0) {print p \" W\"}}' /sys/class/power_supply/BAT0/power_now "
},
"custom/date": {
"class": "date",
"format": " {}",
"interval": 60,
"exec": "date +%m.%d.%Y\\ %H:%M"
}
}
|