Capture mouse by default.
This commit is contained in:
parent
78237f36ac
commit
e0c66bc804
5
captureMouse.reg
Normal file
5
captureMouse.reg
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
REGEDIT4
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
|
||||||
|
"GrabFullscreen"="Y"
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
wineGlobalEnv ? [ "DXVK_STATE_CACHE=0" ],
|
wineGlobalEnv ? [ "DXVK_STATE_CACHE=0" ],
|
||||||
winePatches ? [ ./patches/joyaxis.patch ],
|
winePatches ? [ ./patches/joyaxis.patch ],
|
||||||
virtualDesktop ? null,
|
virtualDesktop ? null,
|
||||||
registryFiles ? [ ]
|
registryFiles ? [ ],
|
||||||
|
captureMouse ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
#check wether string is two positive integers separated by x
|
#check wether string is two positive integers separated by x
|
||||||
|
@ -36,6 +37,10 @@ let
|
||||||
name = "win10.reg";
|
name = "win10.reg";
|
||||||
text = ./win10.reg;
|
text = ./win10.reg;
|
||||||
};
|
};
|
||||||
|
captureMouseReg = pkgs.writeTextFile {
|
||||||
|
name = "captureMouse.reg";
|
||||||
|
text = ./captureMouse.reg;
|
||||||
|
};
|
||||||
script = pkgs.writeShellScriptBin binName ''
|
script = pkgs.writeShellScriptBin binName ''
|
||||||
#sane bash
|
#sane bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
@ -70,6 +75,8 @@ let
|
||||||
mkdir -p "$launcherCachePers" "$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/"
|
mkdir -p "$launcherCachePers" "$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/"
|
||||||
ln -s "$launcherCachePers" "$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/"
|
ln -s "$launcherCachePers" "$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/"
|
||||||
|
|
||||||
|
${lib.optionalString captureMouse ("${regEdit} ${captureMouseReg.text}")}
|
||||||
|
|
||||||
#apply custom user registry files
|
#apply custom user registry files
|
||||||
${lib.concatMapStrings (x: "${regEdit} " + x + "\n") registryFiles}
|
${lib.concatMapStrings (x: "${regEdit} " + x + "\n") registryFiles}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue