#!/usr/bin/bash # change output if cat /proc/acpi/button/lid/LID/state | grep -q open; then swaymsg output enable else swaymsg output disable fi