Files
misc/bin/displayctl
2025-07-02 00:07:49 -07:00

9 lines
151 B
Bash
Executable File

#!/bin/sh
DISPLAY_STATUS=$(xrandr | grep DP-4)
if [[ "$DISPLAY_STATUS" == *"1440x3440"* ]]; then
xrandr --output DP-4 --off
else
init_displays
fi