Fix some resolution bugs
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
eb9fa33694
commit
90fce8e05b
1 changed files with 17 additions and 7 deletions
|
@ -13,7 +13,8 @@
|
|||
# USAGE:
|
||||
# ./resolution
|
||||
|
||||
$(xrandr --listproviders | grep -q "modesetting") && xrandr --setprovideroutputsource 1 0
|
||||
if xrandr --listproviders | grep -q "modesetting"; then
|
||||
xrandr --setprovideroutputsource 1 0
|
||||
|
||||
xrandr \
|
||||
--dpi 96 \
|
||||
|
@ -21,3 +22,12 @@ xrandr \
|
|||
--output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
|
||||
--output DVI-I-1-1 --mode 1920x1080 --pos 3280x0 --rotate normal \
|
||||
--output DVI-I-2-1 --mode 1920x1080 --pos 3280x0 --rotate normal
|
||||
else
|
||||
xrandr \
|
||||
--dpi 96 \
|
||||
--output HDMI1 --mode 1280x1024 --pos 80x56 --rotate normal \
|
||||
--output HDMI-1-1 --mode 1280x1024 --pos 80x56 --rotate normal \
|
||||
--output eDP1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
|
||||
--output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue