26 lines
841 B
Bash
Executable file
26 lines
841 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
|
|
xrandr --addmode HDMI1 1280x1024
|
|
xrandr --addmode HDMI-1-1 1280x1024
|
|
xrandr --output HDMI1 --mode 1280x1024 --pos 0x56 --rotate normal
|
|
xrandr --output HDMI-1-1 --mode 1280x1024 --pos 0x56 --rotate normal
|
|
xrandr --output eDP1 --primary --mode 1920x1080 --pos 1280x0 --rotate normal
|
|
xrandr --output eDP-1-1 --primary --mode 1920x1080 --pos 1280x0 --rotate normal
|
|
xrandr --output DVI-I-1-1 --mode 1920x1080 --pos 3200x0 --rotate normal
|
|
xrandr --output DVI-I-2-1 --mode 1920x1080 --pos 3200x0 --rotate normal
|