Clamshell.sh: LID or LID0 or

Wrt https://github.com/EndeavourOS-Community-Editions/sway/blob/main/.config/sway/scripts/clamshell.sh,

My Dell Vostro 3590 and Inspiron 15-3567 have
/proc/acpi/button/lid/LID0/state and not
/proc/acpi/button/lid/LID/state

So maybe the script can have something more general like
/proc/acpi/button/lid/*/state

2 Likes

Works here on mine. Consider it done!

EDIT: https://github.com/EndeavourOS-Community-Editions/sway/commit/1db7a0b42164eaac3d0091124477b5fd914a1ca0

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.