mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat(katwine): wc3
This commit is contained in:
parent
b627665f2e
commit
d1b1556076
4 changed files with 36 additions and 10 deletions
|
|
@ -70,6 +70,8 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
debug = {
|
debug = {
|
||||||
|
honor-xdg-activation-with-invalid-serial = {};
|
||||||
|
#strict-new-window-focus-policy = {};
|
||||||
#deactivate-unfocused-windows = {};
|
#deactivate-unfocused-windows = {};
|
||||||
};
|
};
|
||||||
workspaces = {
|
workspaces = {
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,19 @@ _: {
|
||||||
];
|
];
|
||||||
open-on-workspace = "chat";
|
open-on-workspace = "chat";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
{
|
||||||
|
app-id = "steam";
|
||||||
|
title = "^notificationtoasts_\d+_desktop$";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
default-floating-position = {
|
||||||
|
x = 10;
|
||||||
|
y = 10;
|
||||||
|
relative-to = "bottom-right";
|
||||||
|
};
|
||||||
|
}
|
||||||
{
|
{
|
||||||
matches = [
|
matches = [
|
||||||
{app-id = "^steam_app_default$";}
|
{app-id = "^steam_app_default$";}
|
||||||
|
|
|
||||||
|
|
@ -58,17 +58,22 @@
|
||||||
PROTON_GE = "${inputs.chaotic.packages.${pkgs.system}.proton-ge-custom.out}/bin";
|
PROTON_GE = "${inputs.chaotic.packages.${pkgs.system}.proton-ge-custom.out}/bin";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# https://lutris.net/games/install/25450/view
|
||||||
|
# Dissection:
|
||||||
|
# * nvapi disables,
|
||||||
|
# * registry key for Win7 in version
|
||||||
systemd.user.services.wc3 = {
|
systemd.user.services.wc3 = {
|
||||||
description = "Warcraft 3";
|
description = "Warcraft 3";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.katwine}/bin/katwine wc3 wc3";
|
ExecStart = "${pkgs.katwine}/bin/katwine wc3";
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
};
|
};
|
||||||
environment = {
|
environment = {
|
||||||
PROTON_CACHYOS = "${inputs.chaotic.packages.${pkgs.system}.proton-cachyos_x86_64_v3.out}/bin";
|
PROTON_CACHYOS = "${inputs.chaotic.packages.${pkgs.system}.proton-cachyos_x86_64_v3.out}/bin";
|
||||||
PROTON_GE = "${inputs.chaotic.packages.${pkgs.system}.proton-ge-custom.out}/bin";
|
PROTON_GE = "${inputs.chaotic.packages.${pkgs.system}.proton-ge-custom.out}/bin";
|
||||||
#PROTON_WC3 = "/home/kat/.local/share/Steam/compatibilitytools.d/GE-Proton10-3";
|
#PROTON_WC3 = "/home/kat/.local/share/Steam/compatibilitytools.d/GE-Proton10-1";
|
||||||
PROTON_WC3 = "/home/kat/.local/share/Steam/steamapps/common/Proton - Experimental";
|
#PROTON_WC3 = "/home/kat/.local/share/Steam/compatibilitytools.d/Proton-Tkg-2367";
|
||||||
|
#PROTON_WC3 = "/home/kat/.local/share/Steam/steamapps/common/Proton - Experimental";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.user.services.kanon = {
|
systemd.user.services.kanon = {
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ proton_setup() {
|
||||||
#
|
#
|
||||||
|
|
||||||
wine_runner() {
|
wine_runner() {
|
||||||
env TZ="$TZ_IN" LC_ALL="$LC_IN" WINEARCH="$WINEARCH" WINEPREFIX="$WINEPREFIX" wine "$@"
|
env WINEARCH="$WINEARCH" WINEPREFIX="$WINEPREFIX" wine "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
proton_runner() {
|
proton_runner() {
|
||||||
|
|
@ -71,8 +71,8 @@ proton_runner() {
|
||||||
vn() {
|
vn() {
|
||||||
WINEPREFIX="${GAMES_DIR}/VNs"
|
WINEPREFIX="${GAMES_DIR}/VNs"
|
||||||
cd "$WINEPREFIX"
|
cd "$WINEPREFIX"
|
||||||
LC_IN="ja_JP.UTF-8"
|
export LC_ALL="ja_JP.UTF-8"
|
||||||
TZ_IN="Asia/Tokyo"
|
export TZ="Asia/Tokyo"
|
||||||
wine_runner "./drive_c/cmd.exe" /k "C:/script.bat" "$@"
|
wine_runner "./drive_c/cmd.exe" /k "C:/script.bat" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -80,20 +80,24 @@ battlenet() {
|
||||||
WINEPREFIX="${GAMES_DIR}/battlenet"
|
WINEPREFIX="${GAMES_DIR}/battlenet"
|
||||||
GAMEDIR="${WINEPREFIX}/drive_c/Program Files (x86)/Battle.net"
|
GAMEDIR="${WINEPREFIX}/drive_c/Program Files (x86)/Battle.net"
|
||||||
GAME_EXE="${GAMEDIR}/Battle.net.exe"
|
GAME_EXE="${GAMEDIR}/Battle.net.exe"
|
||||||
proton_setup
|
system_conf
|
||||||
|
proton_conf
|
||||||
|
dxvk_conf
|
||||||
|
caches_conf
|
||||||
if [ "$#" -ge 1 ]; then
|
if [ "$#" -ge 1 ]; then
|
||||||
case $1 in
|
case $1 in
|
||||||
(sc1|s1|sc)
|
(sc1|s1|sc)
|
||||||
proton_runner "$GAME_EXE" "--exec=\"launch S1\""
|
proton_runner "$GAME_EXE" "--in-process-gpu" "--exec=\"launch S1\""
|
||||||
;;
|
;;
|
||||||
(sc2|s2)
|
(sc2|s2)
|
||||||
proton_runner "$GAME_EXE" "--exec=\"launch S2\""
|
proton_runner "$GAME_EXE" "--in-process-gpu" "--exec=\"launch S2\""
|
||||||
;;
|
;;
|
||||||
(wc3|w3)
|
(wc3|w3)
|
||||||
# TODO: build and ship a custom patched wine for this... jfc
|
# TODO: build and ship a custom patched wine for this... jfc
|
||||||
export STAGING_SHARED_MEMORY=1
|
export STAGING_SHARED_MEMORY=1
|
||||||
export __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1
|
export __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1
|
||||||
proton_runner "$GAME_EXE" "--exec=\"launch W3\""
|
proton_runner "$GAME_EXE" "--in-process-gpu" "--exec=\"launch W3\""
|
||||||
|
#proton_runner "${WINEPREFIX}/drive_c/Program Files (x86)/Warcraft III/_retail_/x86_64/Warcraft III.exe" "-launch"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
|
@ -130,6 +134,8 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PROTON_LOG=1
|
export PROTON_LOG=1
|
||||||
|
export WINEDEBUG="+warn"
|
||||||
|
export WINEUSERSANDBOX=1
|
||||||
|
|
||||||
case "$GAME" in
|
case "$GAME" in
|
||||||
(kanon)
|
(kanon)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue