From 7b21727285e50b0b050c4ddd70d07542229c5366 Mon Sep 17 00:00:00 2001 From: pants Date: Mon, 21 Sep 2026 14:17:03 -0700 Subject: init --- scripts/displayctl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/displayctl (limited to 'scripts/displayctl') diff --git a/scripts/displayctl b/scripts/displayctl new file mode 100755 index 0000000..bba6350 --- /dev/null +++ b/scripts/displayctl @@ -0,0 +1,8 @@ +#!/bin/sh +DISPLAY_STATUS=$(xrandr | grep DP-4) + +if [[ "$DISPLAY_STATUS" == *"1440x3440"* ]]; then + xrandr --output DP-4 --off +else + init_displays +fi -- cgit v1.2.3