/
config.nibbler.lua
54 lines (51 loc) · 1.82 KB
/
config.nibbler.lua
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
local wibox = require("wibox")
local revolution = require("revolution")
return function(config)
config.middle_widgets = {
layout = wibox.layout.fixed.horizontal,
{
enabled = "${if_existing /sys/class/power_supply/BAT0/present 1}1${endif}",
value = "${battery_short} "..config.hwmon("BAT0", 1, "in 0").."V "..config.hwmon("BAT0", 1, "curr 1 0.001 0").."A",
label = "BAT",
widget = revolution.widget.conky
},
{
value = "${cpu}% "..config.hwmon("k10temp", 1, "temp 1").."°",
label = "CPU",
widget = revolution.widget.conky
},
{
value = "${head /sys/class/drm/card0/device/gpu_busy_percent 1 1}% "..config.hwmon("amdgpu", 1, "temp 1").."°",
label = "GPU",
widget = revolution.widget.conky
},
{
value = "${mem}",
label = "MEM",
widget = revolution.widget.conky
},
{
value = "↑${diskio_write /dev/nvme0n1} ↓${diskio_read /dev/nvme0n1} "..config.hwmon("nvme", 1, "temp 1").."°",
label = "SSD",
widget = revolution.widget.conky
},
{
enabled = "${if_up eno1}1${endif}",
value = "↑${upspeed eno1} ↓${downspeed eno1}",
label = "LAN",
widget = revolution.widget.conky
},
{
enabled = "${if_up wlan0}1${endif}",
value = "↑${upspeed wlan0} ↓${downspeed wlan0}",
label = "WLAN",
widget = revolution.widget.conky
},
{
enabled = "${if_up nordlynx}1${endif}",
value = "↑${upspeed nordlynx} ↓${downspeed nordlynx}",
label = "VPN",
widget = revolution.widget.conky
}
}
end