From fcbf8d0ed4a36b9b3ca937f9a2925206333db6b7 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 9 Feb 2020 15:49:40 +0200 Subject: [PATCH] sway/config: Use blocks for output devices Organize settings per output using blocks. --- sway/config | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/sway/config b/sway/config index 41dc1be..5fbd63b 100644 --- a/sway/config +++ b/sway/config @@ -44,13 +44,31 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # You can get the names of your outputs by running: swaymsg -t get_outputs # eDP-1 is the internal laptop display -output eDP-1 scale 2 -output eDP-1 resolution 2560x1440 position 0,0 +output eDP-1 { + scale 2 + resolution 2560x1440 + position 0,0 +} + # DP-3 and DP-4 are display port when connected to dock -output DP-3 scale 2 -output DP-3 resolution 2560x1440 position 1280,0 -output DP-4 scale 2 -output DP-4 resolution 2560x1440 position 1280,0 +output DP-3 { + scale 2 + resolution 2560x1440 + position 1280,0 +} + +output DP-4 { + scale 2 + resolution 2560x1440 + position 1280,0 +} + +output HDMI-A-1 { + scale 1 + resolution 1920x1080 + position 1920,0 +} + set $laptop eDP-1 bindswitch --reload lid:on output $laptop disable