dotfiles/system/.local/bin/resolution
Severin Kaderli eb9fa33694
Fix resolution script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2019-05-29 19:23:42 +02:00

23 lines
622 B
Bash
Executable file

#!/usr/bin/env bash
#
# SCRIPT NAME:
# resolution
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This is the script that is used to setup my monitors. This script
# is used by i3.
#
# USAGE:
# ./resolution
$(xrandr --listproviders | grep -q "modesetting") && xrandr --setprovideroutputsource 1 0
xrandr \
--dpi 96 \
--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