diff options
author | Shubham Saini <pryr@pryr.xyz> | 2021-01-10 10:06:07 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2021-01-10 10:06:07 +0000 |
commit | 5a58034071911286816bbf2418a349f7657494ab (patch) | |
tree | 5f3d494b9a1cc44c1d56add4c880025c6f1019e2 /bin/.bin/disp | |
parent | a42bf68b85d951d9a4cf624fffb74dc247ed6fe1 (diff) |
added shortcut for hdmi
Diffstat (limited to 'bin/.bin/disp')
-rwxr-xr-x | bin/.bin/disp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/.bin/disp b/bin/.bin/disp new file mode 100755 index 0000000..e6de4a8 --- /dev/null +++ b/bin/.bin/disp | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | status=$(cat /sys/class/drm/card0/*HDMI*/status) | ||
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 | ||
5 | else | ||
6 | xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --off | ||
7 | fi | ||