I have a new yoga, need disambiguation

Also add an 'all' which supports eDP-1 and Both
This commit is contained in:
John Mertz 2023-10-05 18:39:09 +00:00
parent f0ea056531
commit fbf1e353fa
1 changed files with 43 additions and 5 deletions

View File

@ -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' => {