Skip Navigation
Hyprfreeze just reached v1.0.0 - Suspend a game process (and other programs) in Hyprland
  • Wow, I wish I knew this workaround during my early gameplay lol.

  • Hyprfreeze just reached v1.0.0 - Suspend a game process (and other programs) in Hyprland
  • 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.

  • Hyprfreeze just reached v1.0.0 - Suspend a game process (and other programs) in Hyprland
    streamable.com hyprfreeze demo

    Watch "hyprfreeze demo" on Streamable.

    hyprfreeze demo

    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

    9
    hyprfreeze - Pause a game process (or any other process) in Hyprland
  • 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.

  • hyprfreeze - Pause a game process (or any other process) in Hyprland
  • 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.

  • hyprfreeze - Pause a game process (or any other process) in 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.

  • hyprfreeze - Pause a game process (or any other process) in Hyprland
  • 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.

  • 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
    All your chats in one app - Self-host Matrix with Bridges and Cloudflare
  • I guess not. I'm not that experienced with ddns but I think there's no way to have subdomains?

  • All your chats in one app - Self-host Matrix with Bridges and Cloudflare
  • You can keep your work apps separate from this. At least that's what I would do

  • All your chats in one app - Self-host Matrix with Bridges and Cloudflare
  • 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.

  • All your chats in one app - Self-host Matrix with Bridges and Cloudflare
  • Was born too late to enjoy that experience 😔

  • All your chats in one app - Self-host Matrix with Bridges and Cloudflare
  • 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.

  • All your chats in one app - Self-host Matrix with Bridges and Cloudflare
  • 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

  • All your chats in one app - Self-host Matrix with Bridges and Cloudflare
  • 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.

  • homelab @lemmy.ml Zerodya @lemm.ee
    All your chats in one app - Self-host Matrix with Bridges and Cloudflare

    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.

    18
    All your chats in one app - Self-host Matrix with Bridges and Cloudflare
  • 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.

  • All your chats in one app - Self-host Matrix with Bridges and Cloudflare
  • 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.

  • All your chats in one app - Self-host Matrix with Bridges and Cloudflare

    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.

    19
    [Hyrpland] feels nice
  • The default layout is what feels comfortable to me and I chose starfish because I used to use starship with zsh, so I went with something I was familiar with and didn't think too much about it.

    I didn't even know about tide until now but after a quick look I can't find any groundbreaking differences in the layouts compared to starfish.

  • [Hyrpland] feels nice
  • It really is just Arch with a different init system. There are no noticeable major differences. The faster bootup times are probably negligible.

    Of course I like the idea of minimalism and the unix philosophy, but the reason I chose Artix isn't so philosophic. I was already using Arch on my laptop and wanted to install it on my desktop, but I enjoy trying to do harder things and learning in the process, so I ended up learning how to use a different init system.. and I also did it because I liked the Artix logo better lol.

    I'm very happy with both Artix and Arch and while I wish systemd wasn't almost a monopoly, at the end of the day everyone is free to use what they want as long as it doesn't hurt the linux ecosystem for others.

  • [Hyrpland] feels nice
  • 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

  • Zerodya Zerodya @lemm.ee
    Posts 5
    Comments 19