#!/bin/bash # Check if HDMI-A-1 is present in hyprctl monitors output if hyprctl monitors | grep -q "HDMI-A-1"; then hyprctl keyword monitor eDP-1,disable else echo "HDMI-A-1 not detected. No action taken." fi