1
0
Fork 1
mirror of https://github.com/Zerodya/hyprfreeze.git synced 2024-09-19 15:33:20 +02:00
Utility to suspend a game process (and other programs) in Hyprland.
Find a file
2023-10-10 20:05:56 +02:00
hyprfreeze Add support for NixOS 2023-10-10 20:51:07 +03:00
README.md Update README.md 2023-10-08 22:14:03 +02:00

hyprfreeze

Simple bash script to "freeze" a game process in Hyprland, allowing you to resume it later. Useful to:

  • Pause games during unpausable cutscenes
  • Save system resources (CPU and GPU are free, the process is saved in RAM)

(Also works for any other program; freezes the current active window)

Usage

Make the script executable and add a bind in your Hyprland config:

bind = $mainMod, PAUSE, exec, ~/scripts/hyprfreeze

Known issues

  • Mouse input doesn't work inside Xorg/XWayland windows while a Wine/Proton game is paused
    • Workaround: Run the game in gamescope
  • Suspending the computer while a game is paused and then resuming it later may cause the game to stutter heavily