2023-09-02 18:18:38 +02:00
|
|
|
# hyprfreeze
|
2023-10-08 22:14:03 +02:00
|
|
|
Simple bash script to "freeze" a game process in Hyprland, allowing you to resume it later.
|
2023-09-02 18:58:22 +02:00
|
|
|
Useful to:
|
2023-10-08 22:14:03 +02:00
|
|
|
- Pause games during unpausable cutscenes
|
2023-09-02 18:58:22 +02:00
|
|
|
- Save system resources (CPU and GPU are free, the process is saved in RAM)
|
|
|
|
|
2023-10-08 22:14:03 +02:00
|
|
|
(Also works for any other program; freezes the current active window)
|
2023-09-02 18:58:22 +02:00
|
|
|
### Usage
|
2023-10-08 20:01:10 +02:00
|
|
|
Make the script executable and add a bind in your Hyprland config:
|
2023-09-02 18:58:22 +02:00
|
|
|
```
|
|
|
|
bind = $mainMod, PAUSE, exec, ~/scripts/hyprfreeze
|
|
|
|
```
|
2023-10-08 20:01:10 +02:00
|
|
|
### Known issues
|
|
|
|
- Mouse input doesn't work inside Xorg/XWayland windows while a Wine/Proton game is paused
|
|
|
|
- Workaround: Run the game in gamescope
|
2023-10-08 20:12:46 +02:00
|
|
|
- Suspending the computer while a game is paused and then resuming it later may cause the game to stutter heavily
|