sway icon indicating copy to clipboard operation
sway copied to clipboard

bindswitch `lid:on` happens during sway startup but `lid:off` does not

Open varqox opened this issue 3 years ago • 2 comments
trafficstars

bindswitch lid:on exec echo lid-on
bindswitch lid:off exec echo lid-off
bindsym Ctrl+Alt+h exit
  • Description: If I start sway with the laptop's lid closed the lid:on happens during sway startup. If I start sway with the laptop's lid open the lid:off does not happen during sway startup.

I find this behavior inconsistent and confusing. Something similar happens with lid:toggle: it only happens if I start sway with the lid closed.

Later, after the sway is nice and running and then I close or open the lid, the events happen as expected.

varqox avatar Jul 13 '22 15:07 varqox

Also happens to me!

Always start my laptop connected to my thunderbolt dock and when closing the lid it at first won't work. Only after exiting sway and opening it again, it works as expected.

Using Arch Linux and also sway v1.7.

EDIT: Seems like it is "only" 2-3 minutes, but still a bit annoying.

jonas-w avatar Jul 23 '22 20:07 jonas-w