diff options
Diffstat (limited to 'scripts/displayctl')
| -rwxr-xr-x | scripts/displayctl | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
