From 6e221be57cbdf54292e818fd809586b8ac16e2ec Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 8 Mar 2020 14:44:48 +0200 Subject: [PATCH] Revert "Use kanshi for display management in sway" This reverts commit f6adb60d4939edc603059148154d51001f0cc057. I think I'm experiencing issues when disconnecting from my docking station because of this. --- kanshi/config | 18 ------------------ sway/config | 31 +++++++++++++++++++++++++++++-- 2 files changed, 29 insertions(+), 20 deletions(-) delete mode 100644 kanshi/config diff --git a/kanshi/config b/kanshi/config deleted file mode 100644 index 6197e4b..0000000 --- a/kanshi/config +++ /dev/null @@ -1,18 +0,0 @@ -{ - output eDP-1 scale 2 mode 2560x1440 position 0,0 - output HDMI-A-1 scale 1 mode 1280x720 position 1280,0 -} - -{ - output eDP-1 scale 2 mode 2560x1440 position 0,0 -} - -{ - output eDP-1 disable - output DP-3 scale 2 mode 2560x1440 position 0,0 -} - -{ - output eDP-1 disable - output DP-4 scale 2 mode 2560x1440 position 0,0 -} diff --git a/sway/config b/sway/config index 452fd61..0a308c5 100644 --- a/sway/config +++ b/sway/config @@ -43,8 +43,35 @@ 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 -# Automatic display management -exec kanshi +# eDP-1 is the internal laptop display +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 + 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 +} + +set $laptop eDP-1 +bindswitch --reload lid:on output $laptop disable +bindswitch --reload lid:off output $laptop enable # Wayland overlay bar for sound and brightness level exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob