// mp3_player module for waybar. merge "custom/quran" into your config and add it to a // modules-left / modules-center / modules-right list. { "custom/quran": { // one long running client: it follows the player over its socket, prints a line per // change, and waits (at zero cost) while the player isn't running "exec": "mp3_player waybar", "return-type": "json", "max-length": 60, "on-click": "mp3_player ctl toggle", "on-click-middle": "mp3_player ctl prev", "on-click-right": "mp3_player ctl next", "on-scroll-up": "mp3_player ctl vol +5", "on-scroll-down": "mp3_player ctl vol -5" // other formats, all optional: // "exec": "mp3_player waybar --format='{icon} {surah}. {name} {position}/{duration}' --icons=,,," // "exec": "mp3_player waybar --stopped='quran'" (keep the module visible when nothing plays) } }