feat(bar): add waybar-mpris
This commit is contained in:
parent
c03d1102ea
commit
af89796a75
2 changed files with 10 additions and 0 deletions
|
|
@ -47,6 +47,7 @@
|
||||||
hyprshot
|
hyprshot
|
||||||
pavucontrol
|
pavucontrol
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
|
waybar-mpris
|
||||||
|
|
||||||
# nix-tools
|
# nix-tools
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
];
|
];
|
||||||
modules-center = [ "hyprland/window" ];
|
modules-center = [ "hyprland/window" ];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
|
"custom/waybar-mpris"
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"backlight"
|
"backlight"
|
||||||
"network"
|
"network"
|
||||||
|
|
@ -144,6 +145,14 @@
|
||||||
"spacing" = 7;
|
"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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue