asus-waybar-module

Crates.ioasus-waybar-module
lib.rsasus-waybar-module
version0.1.0
created_at2025-05-31 06:43:55.226663+00
updated_at2025-05-31 06:43:55.226663+00
descriptionAsus Waybar Profile Module
homepage
repositoryhttps://app.radicle.xyz/nodes/seed.let.software/rad:z2NyPw33oX3SsZVCA8htFQVqoFq52
max_upload_size
id1696101
size5,709
Let (Letronix624)

documentation

README

Asus Waybar Module

Simple program that utilizes asusctl using sudo for being used as a waybar module.

JSON

name: profile name

tooltip: "Asus Power Profile"

class: "{lowercase_profile}"

Installation

Because this uses sudo, you have to add this line to your sudoers file using sudo visudo, in order for it to be able to modify your Asus power profile without requiring a password:

let ALL=(ALL) NOPASSWD: /usr/bin/asusctl *

Next, you simply have to install this program where Waybar's PATH can access this program. This can be achieved using cargo with this command:

cargo install asus-waybar-module

Here is an example how you can add this to your Waybar config:

Example config

  • ~/.config/waybar/config.jsonc
  "custom/asus": {
    "tooltip": "Asus Power Profile",
    "exec": "asus-waybar-module",
    "exec-on-event": true,
    "interval": "once",
    "on-click": "asus-waybar-module cycle"
  },
Commit count: 0

cargo fmt