diff options
Diffstat (limited to 'local/bin/laptop-xrandr.sh')
| -rwxr-xr-x | local/bin/laptop-xrandr.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/local/bin/laptop-xrandr.sh b/local/bin/laptop-xrandr.sh new file mode 100755 index 0000000..d3c5c49 --- /dev/null +++ b/local/bin/laptop-xrandr.sh @@ -0,0 +1,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 |
