From fbf1e353fa1f71dc6d98a5c8d9345690a7040c5f Mon Sep 17 00:00:00 2001 From: John Mertz Date: Thu, 5 Oct 2023 18:39:09 +0000 Subject: [PATCH] I have a new yoga, need disambiguation Also add an 'all' which supports eDP-1 and Both --- sway/displays.pl | 48 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/sway/displays.pl b/sway/displays.pl index 54e2885..b3746cd 100755 --- a/sway/displays.pl +++ b/sway/displays.pl @@ -55,7 +55,8 @@ my $active_outputs = "$ENV{'HOME'}/.spool/active_outputs"; my %outputs = ( 'DENON-AVAMP' => 'TV', 'Paperlike253' => 'eInk', - '0x4140' => 'yoga' + '0x4140' => 'x1', + '0x1305' => 'x13' ); ######################################################################## @@ -67,7 +68,7 @@ my %outputs = ( # Third-level are the actual settings for that display my %configs = ( 'Both' => { - 'yoga' => { + 'x1' => { 'on' => 0 }, 'eInk' => { @@ -94,8 +95,45 @@ my %configs = ( 'bg' => "$ENV{HOME}/wallpapers/wallpaper.png" }, }, + 'all' => { + 'x13' => { + 'on' => 1, + 'width' => 2560, + 'height' => 1440, + 'x' => 3680, + 'y' => 0, + 'rotate' => 0, + 'scale' => 1.5, + 'waybar' => 'bottom', + 'fallback' => '#010101', + 'bg' => "$ENV{HOME}/wallpapers/wallpaper.png" + }, + 'eInk' => { + 'on' => 1, + 'width' => 3200, + 'height' => 1800, + 'x' => 2880, + 'y' => 0, + 'rotate' => 90, + 'scale' => 2, + 'waybar' => 'top', + 'fallback' => '#010101', + }, + 'TV' => { + 'on' => 1, + 'width' => 3840, + 'height' => 2160, + 'x' => 0, + 'y' => 0, + 'rotate' => 0, + 'scale' => 1.33333, + 'waybar' => 'top', + 'fallback' => '#010101', + 'bg' => "$ENV{HOME}/wallpapers/wallpaper.png" + }, + }, 'detached' => { - 'yoga' => { + 'x1' => { 'on' => 1, 'width' => 2560, 'height' => 1440, @@ -115,7 +153,7 @@ my %configs = ( } }, 'eInk' => { - 'yoga' => { + 'x1' => { 'on' => 0 }, 'eInk' => { @@ -135,7 +173,7 @@ my %configs = ( }, }, 'TV' => { - 'yoga' => { + 'x1' => { 'on' => 0 }, 'TV' => {