From 083767fe5154e3046c77b6a95fe15ec4147446a8 Mon Sep 17 00:00:00 2001 From: Adam Gausmann Date: Thu, 15 Dec 2022 22:03:06 -0600 Subject: [PATCH] Add roost display config --- hosts/adventurer.toml | 19 +++++-------------- hosts/roost.toml | 7 ++++++- templates/.config/sway/config | 2 +- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/hosts/adventurer.toml b/hosts/adventurer.toml index 126f78c..d4cf52a 100644 --- a/hosts/adventurer.toml +++ b/hosts/adventurer.toml @@ -6,17 +6,8 @@ disks = ["/"] # hwmon2 = k10temp, temp1 = Tctl temperature-path = "/sys/class/hwmon/hwmon2/temp1_input" -[[outputs]] -name = "Unknown VG258 M1LMQS004947" -position = "1920 0" -mode = "1920x1080@165Hz" - -[[outputs]] -name = "BenQ Corporation BenQ GL2580 46J02196SL0" -position = "0 0" -mode = "1920x1080@60Hz" - -[[outputs]] -name = "BenQ Corporation BenQ GL2580 46J02151SL0" -position = "3840 0" -mode = "1920x1080@60Hz" +outputs = [ + "\"Unknown VG258 M1LMQS004947\" position 1920 0 mode 1920x1080@165Hz", + "\"BenQ Corporation BenQ GL2580 46J02196SL0\" position 0 0 mode 1920x1080@60Hz", + "\"BenQ Corporation BenQ GL2580 46J02151SL0\" position 3840 0 mode 1920x1080@60Hz" +] diff --git a/hosts/roost.toml b/hosts/roost.toml index b5d512a..5ab4268 100644 --- a/hosts/roost.toml +++ b/hosts/roost.toml @@ -2,4 +2,9 @@ base16-scheme = "seti" wireless = ["wlan0"] ethernet = ["eth0"] disks = ["/"] -outputs = [] + +outputs = [ + "HDMI-A-1 mode 3840x2160@30Hz scale 2.0", + #TODO when HDMI cable arrives + #"name HDMI-A-1 mode 3840x2160@60Hz scale 2.0", +] diff --git a/templates/.config/sway/config b/templates/.config/sway/config index 058beea..09f23fd 100644 --- a/templates/.config/sway/config +++ b/templates/.config/sway/config @@ -38,7 +38,7 @@ client.placeholder $base01 $base01 $base05 $base01 $base01 client.background $base07 % for output in host.get('outputs', []): -output "${output['name']}" pos ${output['position']} mode ${output['mode']} +output ${output} % endfor output * bg ${home}/.local/share/backgrounds/sway-dark-1920x1080.png fill