gpu-usage-waybar

Crates.iogpu-usage-waybar
lib.rsgpu-usage-waybar
version0.1.12
sourcesrc
created_at2024-03-22 11:04:44.289596
updated_at2024-11-07 17:16:14.916033
descriptionA tool to display gpu usage in Waybar
homepage
repositoryhttps://github.com/PolpOnline/gpu-usage-waybar
max_upload_size
id1182535
size50,200
Tommaso Melacarne (PolpOnline)

documentation

README

GPU USAGE WAYBAR

Crates.io Version AUR Version GitHub License

This is a simple tool I made to add GPU usage to Waybar.

It is compatible with both NVIDIA and AMD cards

Installation

Requirements

  • For NVIDIA, you need the NVML library installed

  • For AMD, the tool just uses the sysfs interface; you shouldn't need to install anything

Installation

Install with cargo

cargo install gpu-usage-waybar

Usage

Add a custom module to Waybar

Add a module to the top of the config specifying where the module should be positioned

"modules-left": ["...", "custom/gpu-usage", "..."]

Add the custom module to the config

"custom/gpu-usage": {
  "format": "{} {icon}",
  "exec": "gpu-usage-waybar",
  "return-type": "json",
  "format-icons": "󰾲",
  "on-click": "kitty nvtop",
}
Commit count: 63

cargo fmt