1
submitted 4 months ago by mobsenpai@lemmy.world to c/hyprland@lemmy.world

cross-posted from: https://lemmy.world/post/17258082

Problem -> When doing file transfers (mtp) or running some cli commands like nixos-rebuild, when the hyprlock kicks in they are pause at that point and only resume after unlock.

One thing I am kind of noticing that it may be the systemctl suspend command that is suspending the processes. But overall I am confused with the best combination of pairing both the two programs.

Here is the config (for hypridle)

general {
  before_sleep_cmd=loginctl lock-session
  lock_cmd=hyprlock
}

listener {
  on-timeout=suspend-script
  timeout=1800
}

(The suspend script)

      pw-cli i all 2>&1 | grep running -q
      # Only suspend if audio isn't running
      if [ $? == 1 ]; then
        systemctl suspend
      fi

Let me know if you have any solution. The link attached to this post is for my github hosting my nixos dotfiles, maybe that can also help.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 05 Jul 2024
1 points (100.0% liked)

Hyprland Desktop Environment

300 readers
1 users here now

An (unnoficial) Hyprland Community in the new Land!
You can share and help each other when using Hyprland here.. :)

Resources:

founded 1 year ago
MODERATORS