Skip to content

Commit 99e1da9

Browse files
authored
Merge pull request #488 from hosua/hosua/nvidia-widget
Add nvidia-widget
2 parents c257e22 + eedc2a2 commit 99e1da9

File tree

4 files changed

+507
-0
lines changed

4 files changed

+507
-0
lines changed

nvidia-widget/README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Nvidia Widget
2+
3+
This widget shows you some stats like your total VRAM usage, power utilization, GPU temperature, as well as the top processes that are utilizing your VRAM. Clicking on the widget will show more details.
4+
5+
### What the Widget Shows
6+
7+
![gpu-widget](gpu-widget.webp)
8+
9+
##### Main Widget Display:
10+
- GPU temperature (°C)
11+
- Power usage (current/max watts)
12+
- VRAM usage (used/total MiB) with visual arc indicator
13+
14+
##### Popup Details (click to open):
15+
- GPU name and driver version
16+
- Temperature (Celsius and Fahrenheit)
17+
- Power consumption
18+
- Memory usage
19+
- Top 10 processes using VRAM (PID, process name, memory used)
20+
21+
22+
### Dependencies
23+
24+
You should probably already have these installed but incase you don't, this project depends on `nvidia-smi`, as well as some standard Unix tools like `awk`, `sort`, and `head` to work.
25+
26+
### Example Usage
27+
28+
```
29+
local nvidia_widget = require("awesome-wm-widgets.nvidia-widget.nvidia-widget")
30+
31+
s.mywibox:setup({
32+
layout = wibox.layout.align.horizontal,
33+
{
34+
layout = wibox.layout.fixed.horizontal,
35+
wibox.container.background(nvidia_widget({ popup_bg = "#2E3440A0" }), "#27374DA0")
36+
}
37+
})
38+
39+
```
40+
41+
### Parameters
42+
43+
| Name | Default | Description |
44+
|------|---------|-------------|
45+
| `refresh_rate` | `1` | Refresh interval in seconds for updating GPU statistics |
46+
| `popup_bg` | `"#2E3440"` | Background color of the popup window (hex color string) |
47+
| `popup_border_color` | `"#4C566A"` | Border color of the popup window (hex color string) |

nvidia-widget/gpu-widget.webp

35.1 KB
Loading

nvidia-widget/gpu.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)