diff options
author | Shubham Saini <pryr@pryr.xyz> | 2021-05-22 19:18:51 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2021-05-22 19:18:51 +0000 |
commit | 72ccd83ccc66d942b855fe8379bc3f0d24384b76 (patch) | |
tree | 515997e25fb736ee1e3481dc941c1b540c03624b /bin/.bin/disp | |
parent | bde9d8e1c9a6e2213fc7d40298d43a14f2e99359 (diff) |
improved scripts
Diffstat (limited to 'bin/.bin/disp')
-rwxr-xr-x | bin/.bin/disp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/.bin/disp b/bin/.bin/disp index 89045b2..43d6987 100755 --- a/bin/.bin/disp +++ b/bin/.bin/disp | |||
@@ -1,7 +1,10 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | |||
2 | status=$(cat /sys/class/drm/card0/*HDMI*/status) | 3 | status=$(cat /sys/class/drm/card0/*HDMI*/status) |
3 | if [ $status == "connected" ]; then | 4 | if [ $status == "connected" ]; then |
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 | xrandr --output eDP-1 --mode 1920x1080 --pos 0x1076 --rotate normal --output HDMI-1 --primary --mode 1366x768 --scale 1.4x1.4 --pos 0x0 --rotate normal --output DP-1 --off |
6 | bspc wm -r | ||
5 | else | 7 | else |
6 | xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off | 8 | xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off --output DisplayPort-0 --off |
9 | bspc wm -r | ||
7 | fi | 10 | fi |