From cb50361cf2e612269d2228eea81710f480f6764c Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 23 Sep 2021 09:21:24 +0300 Subject: [PATCH] sway/config: manage outputs with kanshi This is dynamic. --- sway/config | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/sway/config b/sway/config index 86bd8bf..88e3073 100644 --- a/sway/config +++ b/sway/config @@ -51,43 +51,8 @@ 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 - resolution 2560x1440 - position 0,0 -} - -# DP-1, DP-2, DP-3, and DP-4 are display port when connected to dock -output DP-1 { - scale 2 - resolution 2560x1440 - position 1280,0 -} - -output DP-2 { - scale 2 - 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 1280x720 - position 1280,0 -} +# Manage outputs with kanshi +exec_always pkill kanshi; exec kanshi # Wayland overlay bar for sound and brightness level exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob