Zerodya

joined 1 year ago
[–] [email protected] 2 points 7 months ago

Wow, I wish I knew this workaround during my early gameplay lol.

[–] [email protected] 7 points 7 months ago (1 children)

Indeed. However it's necessary to use that command on both the main PID and all its child processes, otherwise you will run into issues like the game video stopping but the game logic still running in the background.

This is just a tool to automate finding the pid (via hyprctl or other ways) and correctly suspending it.

 

Hello! You may be interested in Hyprfreeze if you game in Hyprland. It's a small script that lets you suspend games just like gaming consoles do.

I always find it annoying when I'm playing and I quickly need to leave my desk or talk to someone, only to die to some random enemy in Elden Ring or to miss (unpausable) cutscenes of a game.

I've built this script to prevent that from happening and over time it's reached a point where I find it robust enough and want to share it with others. Any feedback is always appreciated.

Github repo: https://github.com/Zerodya/hyprfreeze

[–] [email protected] 4 points 11 months ago* (last edited 11 months ago)

There is Nyrna, but it doesn't work on Wayland.

Afaik saving to swap isn't possible as it's something managed by the kernel, although you can try tweaking cgroups. Nyrna also mentions that this isn't currently possible.

[–] [email protected] 1 points 11 months ago

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.

[–] [email protected] 3 points 11 months ago (2 children)

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.

[–] [email protected] 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.

 

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.

[–] [email protected] 1 points 1 year ago

I guess not. I'm not that experienced with ddns but I think there's no way to have subdomains?

[–] [email protected] 4 points 1 year ago

You can keep your work apps separate from this. At least that's what I would do

[–] [email protected] 3 points 1 year ago

Yes! I mentioned it in the article and they have a self-hosting guide which to be honest, is not about hosting Beeper at all, but it's just a vars.yml template to host some matrix bridges. The template I provide in the article is based off of that.

You can't know what they do with your data, so I decided to self-host this alternative.

[–] [email protected] 4 points 1 year ago

Was born too late to enjoy that experience 😔

[–] [email protected] 3 points 1 year ago

You can totally skip federation and you won't be able to use matrix users or join public rooms, but I guess it's something that some people don't need.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

I wish I could escape it because of privacy concerns, but I'm finding it too convenient to let it go. Would appreciate it if someone could convince me out of it

 

Do your chats look like this? Do you always forget which contacts use which apps? Do you wish there was a way to have all your chats in just one place?

In the following guide I'm going to show you how to use Matrix to achieve your dream of an all-in-one chat app, by using Matrix bridges and securing the connection with Cloudflare Tunnels.

 

Do your chats look like this? Do you always forget which contacts use which apps? Do you wish there was a way to have all your chats in just one place?

In the following guide I'm going to show you how to use Matrix to achieve your dream of an all-in-one chat app, by using Matrix bridges and securing the connection with Cloudflare Tunnels.

41
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
view more: next ›