summaryrefslogtreecommitdiffstats
path: root/local/bin/laptop-xrandr.sh
blob: d3c5c497107fb588369f3e86596ea9e28c90cc79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# See https://wiki.archlinux.org/title/Multihead

# Didn't know how to get the screen name, this works for now
#screen=$(xrandr | grep "primary" | awk '{ print $1 }')
# But now how do I get the rest?  And the correct order?  Maybe it's better just
# to define "hardcoded" functions and just call them.

simple_2_monitor() {
    # enable
    xrandr --output eDP --auto \
        --output HDMI-A-0 --auto --right-of eDP
    # disable
    #xrandr --output eDP --auto \
    #    --output HDMI-A-0 --off
}

simple_2_monitor