#amd-gpu #waybar #nvidia #display #module #cards #compatible

app gpu-usage-waybar

A tool to display gpu usage in Waybar

12 releases

new 0.1.15 Jan 5, 2025
0.1.13 Jan 5, 2025
0.1.12 Nov 7, 2024
0.1.5 Oct 27, 2024
0.1.1 Mar 22, 2024

#165 in Graphics APIs

Download history 24/week @ 2024-09-18 23/week @ 2024-09-25 7/week @ 2024-10-02 11/week @ 2024-10-09 4/week @ 2024-10-16 292/week @ 2024-10-23 159/week @ 2024-10-30 656/week @ 2024-11-06 12/week @ 2024-11-13 16/week @ 2024-11-20 12/week @ 2024-12-04 21/week @ 2024-12-11 227/week @ 2025-01-01

260 downloads per month

MIT and GPL-3.0 licenses

17KB
311 lines

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",
}

Dependencies

~8–16MB
~202K SLoC