[-] Zerodya@lemm.ee 7 points 9 months ago

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.

121
submitted 9 months ago by Zerodya@lemm.ee to c/linux_gaming@lemmy.world

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

[-] Zerodya@lemm.ee 4 points 1 year ago* (last edited 1 year 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.

[-] Zerodya@lemm.ee 3 points 1 year ago

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.

[-] Zerodya@lemm.ee 6 points 1 year 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.

54

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.

[-] Zerodya@lemm.ee 5 points 1 year ago

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

[-] Zerodya@lemm.ee 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.

[-] Zerodya@lemm.ee 4 points 1 year ago

Was born too late to enjoy that experience 😔

[-] Zerodya@lemm.ee 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.

[-] Zerodya@lemm.ee 3 points 1 year ago* (last edited 1 year ago)

You could implement plenty of ways to access it, Cloudflare is just one of them. I made this guide to achieve the goal of self-hosting matrix bridges for people who are already familiar with Cloudflare and have a domain behind it, but it's not something that is mandatory to have for a similar setup.

Cloudflare Tunnels are useful to connect to the server without exposing your ssh port to the internet, and Cloudflare Workers to add .well-known files for federation and Sliding Sync proxy if you don't have a way to serve those files easily.

114
submitted 1 year ago* (last edited 1 year ago) by Zerodya@lemm.ee to c/homelab@lemmy.ml

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.

[-] Zerodya@lemm.ee 18 points 1 year ago* (last edited 1 year ago)

Beeper is great but you have no idea what they’re doing with your data.

Thought the same, that's why I decided to learn how to host it locally and wanted to share the knowledge.

an assembled docker rather than ansible playbook, that is going to be the one that takes off.

Definitely. Right now it causes quite a few headaches and Docker is also what's probably most known by selfhosters.

[-] Zerodya@lemm.ee 4 points 1 year ago

Only locally, so that your local computer can access your server locally. Then the Cloudflare proxy will allow you to connect to it from the internet securely through a two-factor authentication or any other access type you choose, without opening any port to the internet. It's all explained in this section.

You can also implement passwordless authentication but that would probably be too extra.

173
submitted 1 year ago* (last edited 1 year ago) by Zerodya@lemm.ee to c/selfhost@lemmy.ml

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.

[-] Zerodya@lemm.ee 4 points 1 year ago

WM: Hyprland

  • Bar: Waybar
  • Launcher: Bemenu + j4-dmenu-desktop
  • Powermenu: Wofi
  • Notifications: Mako
  • GTK color scheme: adwaita with custom preset

Terminal: Kitty

  • Shell: Fish
  • Prompt: starship

dots | wallpaper

39
submitted 1 year ago* (last edited 1 year ago) by Zerodya@lemm.ee to c/unixporn@lemmy.world
view more: next ›

Zerodya

joined 1 year ago