summaryrefslogtreecommitdiff
path: root/scripts/displayctl
blob: bba6350271296df7d7b389eea313f0956d792ece (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
DISPLAY_STATUS=$(xrandr | grep DP-4)

if [[ "$DISPLAY_STATUS" == *"1440x3440"* ]]; then
  xrandr --output DP-4 --off
else
  init_displays
fi