regolith-linux / regolith-powerd

Daemon to sync gsd power settings with Regolith on Wayland. Provides idle state functionality and sets power button action
1 stars 1 forks source link

Changing `wm.program.lock` doesn't apply on suspend #3

Open lostatc opened 6 months ago

lostatc commented 6 months ago

I'm running Regolith 3.1 with Sway on Pop!_OS 22.04.

I tried changing my screenlocker to swaylock in my Xresources:

wm.program.lock: swaylock --daemonize

This change applies on Super + Esc, but waking from suspend still uses gtklock. To fix that, I needed:

wm.program.lock: swaylock --daemonize
i3-wm.program.lock: swaylock --daemonize

It looks like the offending line is here.

Thanks!

SoumyaRanjanPatnaik commented 3 months ago

Hey. Sorry for being late to reply to this issue. I somehow entirely missed it. Thanks for pointing this out.

SoumyaRanjanPatnaik commented 3 months ago

@kgilmer The current resource name for this is wm.program.lock, as the author mentioned. However, since lock screen programs heavily depend on session type, i.e. X11 or Wayland, I think sway.program.lock (or something similar) is a better resource name.

kgilmer commented 3 months ago

@kgilmer The current resource name for this is wm.program.lock, as the author mentioned. However, since lock screen programs heavily depend on session type, i.e. X11 or Wayland, I think sway.program.lock (or something similar) is a better resource name.

Sounds good to me. (sway.program.lock)