Skip to content

Commit

Permalink
Document widgets in music and nvidia_gpu blocks (#2142)
Browse files Browse the repository at this point in the history
Fixes #1962
  • Loading branch information
bim9262 authored Feb 20, 2025
1 parent 2fac1a0 commit ec57b52
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
12 changes: 9 additions & 3 deletions src/blocks/music.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,17 @@
//! `volume_icon` | Icon based on volume. Missing if unsupported. | Icon
//! `volume` | Current volume. Missing if muted or unsupported. | Number
//!
//! Widget | Placeholder
//! -----------------|-------------
//! `play_pause_btn` | `$play`
//! `next_btn` | `$next`
//! `prev_btn` | `$prev`
//!
//! Action | Default button
//! ----------------|------------------
//! `play_pause` | Left on `$play`
//! `next` | Left on `$next`
//! `prev` | Left on `$prev`
//! `play_pause` | Left on `play_pause_btn`
//! `next` | Left on `next_btn`
//! `prev` | Left on `prev_btn`
//! `next_player` | Right
//! `seek_forward` | Wheel Up
//! `seek_backward` | Wheel Down
Expand Down
13 changes: 9 additions & 4 deletions src/blocks/nvidia_gpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,17 @@
//! `clocks` | Number | Hertz
//! `power` | Number | Watts
//!
//! Widget | Placeholder
//! ----------|-------------
//! `mem_btn` | `$memory`
//! `fan_btn` | `$fan_speed`
//!
//! Action | Default button
//! ------------------------|----------------
//! `toggle_mem_total` | Left on `$memory`
//! `toggle_fan_controlled` | Left on `$fan_speed`
//! `fan_speed_up` | Wheel Up on `$fan_speed`
//! `fan_speed_down` | Wheel Down on `$fan_speed`
//! `toggle_mem_total` | Left on `mem_btn`
//! `toggle_fan_controlled` | Left on `fan_btn`
//! `fan_speed_up` | Wheel Up on `fan_btn`
//! `fan_speed_down` | Wheel Down on `fan_btn`
//!
//! # Example
//!
Expand Down

0 comments on commit ec57b52

Please sign in to comment.