#waybar #card

app gpu-usage-waybar

A tool to display gpu usage in Waybar

16 releases

new 0.1.19 Mar 24, 2025
0.1.18 Mar 18, 2025
0.1.15 Jan 5, 2025
0.1.12 Nov 7, 2024
0.1.1 Mar 22, 2024

#255 in Configuration

Download history 12/week @ 2024-12-04 21/week @ 2024-12-11 227/week @ 2025-01-01 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

440 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

~8–18MB
~235K SLoC