#!/bin/sh # lid.sh if swaymsg -t get_outputs | grep -q '"HDMI-A-1"'; then swaymsg output eDP-1 disable fi