sway
sway copied to clipboard
bindswitch `lid:on` happens during sway startup but `lid:off` does not
trafficstars
-
Sway Version:
- sway version 1.7
-
Debug Log: sway_open_lid.log sway_closed_lid.log
-
Configuration File:
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:onhappens during sway startup. If I start sway with the laptop's lid open thelid:offdoes 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.
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.