diff options
author | Shubham Saini <pryr@pryr.xyz> | 2021-01-16 09:40:36 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2021-01-16 09:40:36 +0000 |
commit | 6ac83326ddba3ebcb4866435a6df0ea75483ee03 (patch) | |
tree | 36fb5ce9d617fb620bab0825a98b09a32f0df8fe /bin/.bin/disp | |
parent | 5a58034071911286816bbf2418a349f7657494ab (diff) |
changes
Diffstat (limited to 'bin/.bin/disp')
-rwxr-xr-x | bin/.bin/disp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/.bin/disp b/bin/.bin/disp index e6de4a8..89045b2 100755 --- a/bin/.bin/disp +++ b/bin/.bin/disp | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | status=$(cat /sys/class/drm/card0/*HDMI*/status) | 2 | status=$(cat /sys/class/drm/card0/*HDMI*/status) |
3 | if [ $status == "connected" ]; then | 3 | if [ $status == "connected" ]; then |
4 | xrandr --output eDP --primary --mode 1920x1080 --pos 0x1080 --rotate normal --output HDMI-A-0 --mode 1366x768 --pos 0x0 --scale 1.4x1.4 --rotate normal --output DisplayPort-0 --off | 4 | xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x1080 --rotate normal --output HDMI-1 --mode 1366x768 --pos 0x0 --scale 1.4x1.4 --rotate normal --output DisplayPort-0 --off |
5 | else | 5 | else |
6 | xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --off | 6 | xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off |
7 | fi | 7 | fi |