From c705b8061d67582312ab2da4dae8a4a3ec69cbfd Mon Sep 17 00:00:00 2001 From: lucca Date: Wed, 17 Jun 2026 21:19:21 -0400 Subject: [PATCH] added more scripts --- .gitignore | 1 + screenlayout/3monitors.sh | 4 ++++ screenlayout/crtOnly.sh | 5 +++++ screenlayout/tv1080p.sh | 2 ++ screenlayout/tv720p.sh | 2 ++ wakeUltrawide.sh | 2 ++ 6 files changed, 16 insertions(+) create mode 100644 .gitignore create mode 100755 screenlayout/3monitors.sh create mode 100755 screenlayout/crtOnly.sh create mode 100755 screenlayout/tv1080p.sh create mode 100755 screenlayout/tv720p.sh create mode 100755 wakeUltrawide.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378b0b4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pk diff --git a/screenlayout/3monitors.sh b/screenlayout/3monitors.sh new file mode 100755 index 0000000..12bd51b --- /dev/null +++ b/screenlayout/3monitors.sh @@ -0,0 +1,4 @@ +#!/bin/sh +sudo wakeUltrawide.sh +xrandr --output HDMI-A-0 --pos 1920x1080 --output DisplayPort-2 --pos 605x0 --output DisplayPort-1 --mode 1920x1080 --scale-from 1920x1080 --pos 0x1080 --rotate normal +kscreen-doctor output.HDMI-A-0.primary output.DisplayPort-1.priority.2 output.DisplayPort-2.priority.3 diff --git a/screenlayout/crtOnly.sh b/screenlayout/crtOnly.sh new file mode 100755 index 0000000..e61a259 --- /dev/null +++ b/screenlayout/crtOnly.sh @@ -0,0 +1,5 @@ +#!/bin/sh +xrandr --output DisplayPort-2 --off +xrandr --output DisplayPort-1 --off +sleep 2 +xrandr --output DisplayPort-1 --mode 1920x1080 --scale-from $(xdpyinfo | grep -oP 'dimensions:\s+\K\d+x\d+') --same-as HDMI-A-0 diff --git a/screenlayout/tv1080p.sh b/screenlayout/tv1080p.sh new file mode 100755 index 0000000..00379da --- /dev/null +++ b/screenlayout/tv1080p.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DisplayPort-0 --off --output DisplayPort-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DisplayPort-2 --off --output HDMI-A-0 --off diff --git a/screenlayout/tv720p.sh b/screenlayout/tv720p.sh new file mode 100755 index 0000000..a80627b --- /dev/null +++ b/screenlayout/tv720p.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DisplayPort-0 --off --output DisplayPort-1 --primary --mode 1280x720 --pos 0x0 --rotate normal --output DisplayPort-2 --off --output HDMI-A-0 --off diff --git a/wakeUltrawide.sh b/wakeUltrawide.sh new file mode 100755 index 0000000..09d6b75 --- /dev/null +++ b/wakeUltrawide.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo on > /sys/class/drm/card0-DP-3/status