After looking at this mpv github issue, I tried adding the audio-display
option to my home-manager config:
{ ... }: {
programs.mpv = {
enable = true;
config = {
input-ipc-server = "/tmp/mpvsocket";
single-instance-behavior = "replace";
force-window = "no";
audio-display = "no";
speed = "1.5";
};
};
}
To make sure the player was using the config, I included the speed
option. Playback did change to 1.5x, but it didn’t respect the audio-display
option and a window still opened.
According to the man page for mpv, setting audio-display=no
should “Disable display of video entirely when playing audio files.” It doesn’t mention anything about keeping the “window” from opening up.
I’d like to just use my media keys to control mpv in the background while playing audio files - no need for a gui window on my laptop running hyperland, atm. Does anyone know of a way to keep the player from opening a window?