summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2026-03-20 07:11:14 +0100
committerxengineering <me@xengineering.eu>2026-03-20 07:11:14 +0100
commit1e87c16b4eebd0fb13e13022ac4f4db670d05de3 (patch)
tree645bf9619fa8198d6dd3efcbe9648b1525c37afc
parentf7daebe7970b2c297cbd8f4373e975b2bec6be7f (diff)
downloaddotfiles-main.tar
dotfiles-main.tar.zst
dotfiles-main.zip
sway: Use unique output identifiersHEADmain
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.
-rw-r--r--sway/config23
l---------sway/setup1
-rw-r--r--sway/setups/home16
3 files changed, 21 insertions, 19 deletions
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
diff --git a/sway/setup b/sway/setup
deleted file mode 120000
index bbc3121..0000000
--- a/sway/setup
+++ /dev/null
@@ -1 +0,0 @@
-setups/home \ No newline at end of file
diff --git a/sway/setups/home b/sway/setups/home
deleted file mode 100644
index b62df86..0000000
--- a/sway/setups/home
+++ /dev/null
@@ -1,16 +0,0 @@
-
-# The Monitor Setup I use at Home (three monitors in total)
-
-# Use `swaymsg -t get_outputs` to list monitors
-
-output eDP-1 resolution 1920x1080 position 0,540
-workspace 3 output eDP-1
-
-output DP-5 resolution 1920x1080 position 1920,0
-workspace 1 output DP-5
-input 1386:830:Wacom_Intuos_PT_M_2_Pen map_to_output DP-5
-input 1386:830:Wacom_Intuos_PT_M_2_Finger map_to_output DP-5
-input 1386:830:Wacom_Intuos_PT_M_2_Pad map_to_output DP-5
-
-output DP-3 resolution 1920x1080 position 3840,0
-workspace 2 output DP-3