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

app gpu-usage-waybar

A tool to display gpu usage in Waybar

3 releases

new 0.1.3 Oct 25, 2024
0.1.2 Sep 12, 2024
0.1.1 Mar 22, 2024

#202 in Graphics APIs

Download history 106/week @ 2024-09-09 37/week @ 2024-09-16 27/week @ 2024-09-23 10/week @ 2024-09-30 9/week @ 2024-10-07 8/week @ 2024-10-14

55 downloads per month

MIT and GPL-3.0 licenses

15KB
311 lines

GPU USAGE WAYBAR

crates.io

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
~203K SLoC