move config files to new yadm dir
This commit is contained in:
17
.config/yadm/alt/.bin/multimonitor
Executable file
17
.config/yadm/alt/.bin/multimonitor
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
DISPLAY_COUNT=$(xrandr -d :0 -q | grep ' connected' | wc -l)
|
||||
if [ "$DISPLAY_COUNT" == 3 ]
|
||||
then
|
||||
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x360 --rotate normal
|
||||
xrandr --output DP1-2 --mode 2560x1440 --pos 4480x0 --rotate normal
|
||||
xrandr --output DP1-1 --mode 2560x1440 --pos 1920x0 --rotate normal
|
||||
elif [ "$DISPLAY_COUNT" == 1 ]
|
||||
then
|
||||
xrandr --output DP1-2 --off
|
||||
xrandr --output DP1-1 --off
|
||||
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal
|
||||
elif [ "$DISPLAY_COUNT" == 2 ]
|
||||
then
|
||||
xrandr --output HDMI1 --mode 2560x1440 --pos 1920x0 --rotate normal
|
||||
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x360 --rotate normal
|
||||
fi
|
||||
Reference in New Issue
Block a user