Handle clamshell monitor hotplug

This commit is contained in:
David Heinemeier Hansson
2026-06-22 21:48:35 +02:00
parent 4772f01148
commit ee65304b92
6 changed files with 72 additions and 16 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# omarchy:summary=Apply clamshell display state to Hyprland monitors
# omarchy:hidden=true
omarchy-hyprland-monitor-internal recover >/dev/null 2>&1 || true
omarchy-hyprland-monitor-internal-mirror recover >/dev/null 2>&1 || true
if omarchy-hw-clamshell; then
omarchy-hyprland-monitor-internal off >/dev/null 2>&1 || true
fi