revamp flake
This commit is contained in:
parent
433967847a
commit
251932e6c0
82 changed files with 444 additions and 2406 deletions
27
conf.d/utils/gs.sh
Executable file
27
conf.d/utils/gs.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
set -xeuo pipefail
|
||||
|
||||
gamescopeArgs=(
|
||||
--adaptive-sync # VRR support
|
||||
--hdr-enabled
|
||||
--mangoapp # performance overlay
|
||||
--rt
|
||||
--steam
|
||||
)
|
||||
steamArgs=(
|
||||
-pipewire-dmabuf
|
||||
-tenfoot
|
||||
)
|
||||
mangoConfig=(
|
||||
cpu_temp
|
||||
gpu_temp
|
||||
ram
|
||||
vram
|
||||
)
|
||||
mangoVars=(
|
||||
MANGOHUD=1
|
||||
MANGOHUD_CONFIG="$(IFS=,; echo "${mangoConfig[*]}")"
|
||||
)
|
||||
|
||||
export "${mangoVars[@]}"
|
||||
exec gamescope "${gamescopeArgs[@]}" -- steam "${steamArgs[@]}"
|
||||
16
conf.d/utils/patch-eldenring.sh
Executable file
16
conf.d/utils/patch-eldenring.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
# https://old.reddit.com/r/linux_gaming/comments/td14yg/elden_ring_wont_launch_protonlinux/
|
||||
# Move $ELDEN_RING_DIR/elden_ring.exe to $ELDEN_RING_DIR/start_protected_game.exe
|
||||
|
||||
ELDEN_RING_DIR="$HOME/.steam/steam/steamapps/common/ELDEN RING/Game"
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [ ! -f "$ELDEN_RING_DIR/eldenring.exe" ]; then
|
||||
echo "Already patched at $ELDEN_RING_DIR"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mv "$ELDEN_RING_DIR/start_protected_game.exe" "$ELDEN_RING_DIR/start_protected_game.exe.bak"
|
||||
mv "$ELDEN_RING_DIR/eldenring.exe" "$ELDEN_RING_DIR/start_protected_game.exe"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue