nix-config/modules/desktop/dmenu-mpv.nix
Oliver Davies 278904eec6
Some checks are pending
/ check (push) Waiting to run
Group desktop modules
2025-11-22 14:41:07 +00:00

24 lines
496 B
Nix

{
flake.modules.homeManager.gui =
{ pkgs, ... }:
{
home.packages = [
(pkgs.writeShellApplication {
name = "dmenu_mpv";
text = ''
selected="$(find "$HOME/Videos" -type f | dmenu -i -l 15)"
if [[ -n "$selected" ]]; then
mpv --fs --speed=1.5 "$selected" >/dev/null 2>&1
fi
'';
runtimeInputs = with pkgs; [
dmenu
mpv
];
})
];
};
}