From a29ea164e03df5a504235b3f681dfecfa7a0348b Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Sun, 26 Nov 2023 19:17:06 -0500 Subject: Rename laptopo xrandr script --- local/bin/laptop-multimonitor_setup.sh | 15 --------------- local/bin/laptop-xrandr.sh | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 15 deletions(-) delete mode 100755 local/bin/laptop-multimonitor_setup.sh create mode 100755 local/bin/laptop-xrandr.sh diff --git a/local/bin/laptop-multimonitor_setup.sh b/local/bin/laptop-multimonitor_setup.sh deleted file mode 100755 index ddb4aaf..0000000 --- a/local/bin/laptop-multimonitor_setup.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/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 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 -- cgit v1.2.3