feat(bar): add waybar-mpris

This commit is contained in:
etwas 2024-12-25 09:22:32 +01:00
parent c03d1102ea
commit af89796a75
Signed by: etwas
SSH key fingerprint: SHA256:bHhIeAdn/2k9jmOs6+u6ox98VYmoHUN3HfnpV2w8Ws0
2 changed files with 10 additions and 0 deletions

View file

@ -47,6 +47,7 @@
hyprshot
pavucontrol
networkmanagerapplet
waybar-mpris
# nix-tools
nix-output-monitor

View file

@ -24,6 +24,7 @@
];
modules-center = [ "hyprland/window" ];
modules-right = [
"custom/waybar-mpris"
"pulseaudio"
"backlight"
"network"
@ -144,6 +145,14 @@
"spacing" = 7;
};
};
"custom/waybar-mpris" = {
return-type = "json";
exec = "waybar-mpris --position --autofocus";
on-click = "waybar-mpris --send toggle";
on-click-right = "waybar-mpris --send player-next";
escape = true;
};
};
};
}