Clean up resolution script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
90fce8e05b
commit
386d41362b
1 changed files with 11 additions and 17 deletions
|
@ -13,21 +13,15 @@
|
|||
# USAGE:
|
||||
# ./resolution
|
||||
|
||||
if xrandr --listproviders | grep -q "modesetting"; then
|
||||
xrandr --setprovideroutputsource 1 0
|
||||
xrandr --listproviders | grep -q "modesetting" && xrandr --setprovideroutputsource 1 0
|
||||
|
||||
xrandr \
|
||||
--dpi 96 \
|
||||
--addmode HDMI1 1280x1024 \
|
||||
--addmode HDMI-1-1 1280x1024 \
|
||||
--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 \
|
||||
--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