56
submitted 11 months ago by Zerodya@lemm.ee to c/linux_gaming@lemmy.world

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.

you are viewing a single comment's thread
view the rest of the comments
[-] refurbishedrefurbisher@lemmy.sdf.org 5 points 11 months ago

Does this mean I can pause online games?

/s

/us I'm assuming this is like pressing Ctrl+Z in a Terminal window, and then fg to unpause.

[-] Zerodya@lemm.ee 6 points 11 months ago

Haha, yes! Ctrl+Z sends a TSPT signal to a terminal process, while this script sends a STOP signal to every process in a game's process tree. Both get resumed with a SIGCONT so they're kinda similar.

this post was submitted on 08 Oct 2023
56 points (100.0% liked)

Linux Gaming

14933 readers
26 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 1 year ago
MODERATORS