From 37ff7062874b72bafa99afe661f42653565ed511 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Wed, 11 Sep 2024 04:25:38 +0900 Subject: RESTRUCTURE. Replicate relative paths in public/ --- public/.local/bin/laptop-xrandr.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 public/.local/bin/laptop-xrandr.sh (limited to 'public/.local/bin/laptop-xrandr.sh') diff --git a/public/.local/bin/laptop-xrandr.sh b/public/.local/bin/laptop-xrandr.sh new file mode 100755 index 0000000..cbe9479 --- /dev/null +++ b/public/.local/bin/laptop-xrandr.sh @@ -0,0 +1,23 @@ +#!/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 --left-of eDP + # disable + xrandr --output eDP --auto \ + --output HDMI-A-0 --off +} + +# Thank you: https://www.maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/ +# xrandr --auto --output HDMI-A-0 --mode 1920x1080 --right-of eDP + +#simple_2_monitor +xrandr --auto --output HDMI-A-0 --mode 1920x1080 --right-of eDP -- cgit v1.2.3