Skip Navigation

hyprfreeze - Pause a game process (or any other process) in Hyprland

github.com GitHub - Zerodya/hyprfreeze: Pause and resume game/program process in Hyprland

Pause and resume game/program process in Hyprland. Contribute to Zerodya/hyprfreeze development by creating an account on GitHub.

GitHub - Zerodya/hyprfreeze: Pause and resume game/program process in Hyprland

Hey all! If you do any gaming on Hyprland, you might be interested in hyprfreeze.

It's a very simple bash script I made to "freeze" a game process (or any other process) in Hyprland, which you may find useful to:

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

Should just work^^TM in most scenarios but my testings can only go so far and any feedback would be very appreciated.

9

You're viewing a single thread.

9 comments
  • Does it work on Wayland compositors that aren't hyprland?

    • No, it uses hyprctl to get the pid of the current active window. Which compositor are you using? It might be possible to get the pid in a different way.

      • Qtile and mutter, I have 2 computers

        • I'm not familiar with qtile, but I'm fairly sure there's currently no way to get information about the active window on mutter unfortunately.

          Thing with wayland is, each compositor has to implement things their own way, so you're limited to what your compositor allows you to do.

          For instance, you can get window information in sway with swaymsg. On other compositors you may have to find workarounds.

9 comments