Files
omarchycn/bin/omarchy-hyprland-monitor-internal-disable
T

14 lines
428 B
Bash
Executable File

#!/bin/bash
# Disable the internal laptop display. No-op if already disabled or if it
# would leave no active display.
if omarchy-hyprland-monitors-many; then
if omarchy-hyprland-toggle-disabled internal-monitor-disable; then
omarchy-hyprland-toggle internal-monitor-disable --enabled-notification "󰍹 Internal display off"
fi
else
notify-send -u low "󰍹 Can't disable the only active display"
exit 1
fi