From 23a73c7913ff332cccf38a13b98bc9d2d6dff413 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Tue, 31 Mar 2026 17:29:52 +0200 Subject: [PATCH] Add deterministic workspace-to-output mapping for Sway on nymph --- dotfiles/desktop/.config/waybar/config-sway.jsonc | 1 - dotfiles/nymph/.config/kanshi/config | 2 ++ dotfiles/nymph/.config/sway/host.conf | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dotfiles/desktop/.config/waybar/config-sway.jsonc b/dotfiles/desktop/.config/waybar/config-sway.jsonc index 5f4bb62..5f31197 100644 --- a/dotfiles/desktop/.config/waybar/config-sway.jsonc +++ b/dotfiles/desktop/.config/waybar/config-sway.jsonc @@ -22,7 +22,6 @@ "sway/workspaces": { "disable-scroll": true, - "all-outputs": true, "format": "{name}", "sort-by-number": true }, diff --git a/dotfiles/nymph/.config/kanshi/config b/dotfiles/nymph/.config/kanshi/config index 4de1815..a96e34a 100644 --- a/dotfiles/nymph/.config/kanshi/config +++ b/dotfiles/nymph/.config/kanshi/config @@ -4,6 +4,7 @@ profile solo { output HDMI-A-1 disable output HDMI-A-2 disable output eDP-1 enable mode 1920x1080 position 0,0 + exec swaymsg "workspace 1, move workspace to output eDP-1; workspace 2, move workspace to output eDP-1; workspace 3, move workspace to output eDP-1; workspace 4, move workspace to output eDP-1; workspace 5, move workspace to output eDP-1; workspace 6, move workspace to output eDP-1; workspace 7, move workspace to output eDP-1; workspace 8, move workspace to output eDP-1; workspace 9, move workspace to output eDP-1; workspace 10, move workspace to output eDP-1" } profile dual { @@ -12,4 +13,5 @@ profile dual { output HDMI-A-2 disable output eDP-1 enable mode 1920x1080 position 0,0 output DP-1 enable mode 3440x1440@100Hz position 1920,0 + exec swaymsg "workspace 1, move workspace to output eDP-1; workspace 2, move workspace to output DP-1; workspace 3, move workspace to output DP-1; workspace 4, move workspace to output DP-1; workspace 5, move workspace to output DP-1; workspace 6, move workspace to output DP-1; workspace 7, move workspace to output DP-1; workspace 8, move workspace to output DP-1; workspace 9, move workspace to output DP-1; workspace 10, move workspace to output DP-1" } diff --git a/dotfiles/nymph/.config/sway/host.conf b/dotfiles/nymph/.config/sway/host.conf index 0134178..28c111d 100644 --- a/dotfiles/nymph/.config/sway/host.conf +++ b/dotfiles/nymph/.config/sway/host.conf @@ -1 +1,12 @@ set $terminal ~/.local/bin/prime-run /usr/bin/alacritty + +workspace 1 output eDP-1 +workspace 2 output DP-1 +workspace 3 output DP-1 +workspace 4 output DP-1 +workspace 5 output DP-1 +workspace 6 output DP-1 +workspace 7 output DP-1 +workspace 8 output DP-1 +workspace 9 output DP-1 +workspace 10 output DP-1