mpv: Upgrade to -git to enable --fs-screen-name
This commit is contained in:
parent
de389523d7
commit
0aed41b761
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, modulesPath, lib, fetchGit, ... }:
|
||||
{ config, pkgs, modulesPath, lib, fetchGit, fetchFromGitHub, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
@ -26,13 +26,25 @@
|
||||
})
|
||||
|
||||
# Simple overrides
|
||||
(final: prev: {
|
||||
mpv = prev.wrapMpv prev.mpv-unwrapped {
|
||||
(final: prev: let
|
||||
# NOTE: For some reason --fs-screen-name and --screen-name are not in
|
||||
# 0.33.1. So wait and then remove this.
|
||||
mpv-git = prev.mpv-unwrapped.overrideAttrs (old: {
|
||||
version = "0.34.0";
|
||||
src = builtins.fetchGit {
|
||||
url = "https://github.com/mpv-player/mpv.git";
|
||||
ref = "master";
|
||||
rev = "0b56e1c00a57fdb767674462c299a5c973a9e373";
|
||||
};
|
||||
patches = [];
|
||||
});
|
||||
in {
|
||||
mpv = prev.wrapMpv mpv-git {
|
||||
# Prevent the need for prefixing mpv with DRI_PRIME=1
|
||||
extraMakeWrapperArgs = [
|
||||
"--set" "DRI_PRIME" "1"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
gajim = prev.gajim.overrideAttrs (old: {
|
||||
# Enable notification sounds
|
||||
|
@ -12,7 +12,9 @@ let
|
||||
video-sync = "display-resample";
|
||||
interpolation = "";
|
||||
tscale = "oversample";
|
||||
fs-screen = 0; # Make mpv pop up on the primary screen
|
||||
# TODO: Make those two configurable
|
||||
screen-name = "C27F398";
|
||||
fs-screen-name = "C27F398"; # Make mpv pop up on the primary screen
|
||||
} // additional;
|
||||
in {
|
||||
config = {
|
||||
|
Loading…
Reference in New Issue
Block a user