audio output handling

This commit is contained in:
mjallen18
2025-11-20 18:05:52 -06:00
parent 2c4cc7c6b7
commit 75d97dd9ff
2 changed files with 21 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, namespace, ... }:
with lib;
let
cfg = config.mjallen.programs.waybar;
@@ -420,12 +420,13 @@ in
(mkIf cfg.features.audio.sink.enable {
"wireplumber#sink" = {
format = "{icon} {volume}%";
tooltip = false;
tooltip-format = "{icon}\n{node_name}\n{format_source}\n{source_desc}";
format-muted = "{icon} Muted";
on-click = "wpctl set-mute @DEFAULT_SINK@ toggle";
on-click-right = "pavucontrol -t 1";
on-scroll-up = "wpctl set-volume @DEFAULT_SINK@ 5%+";
on-scroll-down = "wpctl set-volume @DEFAULT_SINK@ 5%-";
on-click-middle = "waybar-audio";
scroll-step = 5;
format-icons = {
headphone = "󰋋";