diff options
| author | Mitsuo Tokumori <rtokumori@pucp.edu.pe> | 2023-11-24 00:44:34 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <rtokumori@pucp.edu.pe> | 2023-11-24 00:44:34 -0500 |
| commit | dbf6639677796336bdb345efb70736d29c44f60f (patch) | |
| tree | e8427d394fe51939b43b28f9cb01c863451406df /local/bin/laptop-multimonitor_setup.sh | |
| parent | 6e515b6902c537e742c2408783459e6a0ad10fa0 (diff) | |
Add my bash scripts
Diffstat (limited to 'local/bin/laptop-multimonitor_setup.sh')
| -rwxr-xr-x | local/bin/laptop-multimonitor_setup.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/local/bin/laptop-multimonitor_setup.sh b/local/bin/laptop-multimonitor_setup.sh new file mode 100755 index 0000000..ddb4aaf --- /dev/null +++ b/local/bin/laptop-multimonitor_setup.sh @@ -0,0 +1,15 @@ +#!/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() { + xrandr --output eDP --auto + xrandr --output HDMI-A-0 --auto --right-of eDP +} + +simple_2_monitor |
