From 1e87c16b4eebd0fb13e13022ac4f4db670d05de3 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 20 Mar 2026 07:11:14 +0100 Subject: sway: Use unique output identifiers These long strings are unique and stable. This allows to write an output configuration suitable for multiple laptops on multiple workplaces with multiple monitors. Especially hot-plugging is simplified with this because it simply works without using tools like wdisplays each time. --- sway/config | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'sway/config') diff --git a/sway/config b/sway/config index bfb2776..2c81935 100644 --- a/sway/config +++ b/sway/config @@ -23,8 +23,27 @@ set $menu bemenu-run -p ">>>" | xargs swaymsg exec # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) output * bg ~/wallpaper fill -# include current output/monitor setup -include ~/.config/sway/setup +# thinkpad +output "Chimei Innolux Corporation 0x14C9 Unknown" resolution 1920x1080 position 2560,1440 + +# hopzombie +output "Chimei Innolux Corporation 0x14D4 0x00000000" resolution 1920x1080 position 2560,1440 + +# h26 Arch +output "LG Electronics 24BK450H 0x01010101" resolution 1920x1080 position 4480,900 +output "LG Electronics 24MB56 0x01010101" resolution 1920x1080 position 6400,900 + +# hs26 Debian +output "Goldstar Company Ltd 24BK450H " resolution 1920x1080 position 4480,900 +output "Goldstar Company Ltd 24MB56 " resolution 1920x1080 position 6400,900 + +# e5 +output "Dell Inc. DELL SE2723DS FLNJQT3" resolution 2560x1440 position 0,0 +output "Dell Inc. DELL SE2723DS H2YJQT3" resolution 2560x1440 position 2560,0 + +workspace 1 output "LG Electronics 24BK450H 0x01010101" "Goldstar Company Ltd 24BK450H " "Dell Inc. DELL SE2723DS FLNJQT3" +workspace 2 output "LG Electronics 24MB56 0x01010101" "Goldstar Company Ltd 24MB56 " "Dell Inc. DELL SE2723DS H2YJQT3" +workspace 3 output "Chimei Innolux Corporation 0x14C9 Unknown" "Chimei Innolux Corporation 0x14D4 0x00000000" font JetBrainsMonoNerdFont 10 -- cgit v1.3