#waybar #gpu #card

app gpu-usage-waybar

A tool to display gpu usage in Waybar

18 releases

new 0.1.22 Apr 27, 2025
0.1.21 Apr 27, 2025
0.1.19 Mar 24, 2025
0.1.15 Jan 5, 2025
0.1.1 Mar 22, 2024

#59 in Configuration

Download history 29/week @ 2025-01-08 6/week @ 2025-01-15 12/week @ 2025-02-05 7/week @ 2025-02-19 5/week @ 2025-02-26 179/week @ 2025-03-12 255/week @ 2025-03-19 34/week @ 2025-03-26 9/week @ 2025-04-02 6/week @ 2025-04-09 9/week @ 2025-04-16 218/week @ 2025-04-23

248 downloads per month

MIT and GPL-3.0 licenses

23KB
513 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",
}

The crate also has a configuration file (located at $XDG_CONFIG_HOME/gpu-usage-waybar/config.toml) which can be used to set various options about the output.

Bear in mind that args passed to the command line will override the configuration file

Dependencies

~11–20MB
~267K SLoC