From e8a510cc0d0a44823d27346308c8ec65380fe052 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:54:04 +0100 Subject: fix: use wl-mirror for true display mirroring The pos 0 0 hack created two independent overlapping outputs, causing workspace duplication and fuzzel rendering across wrong boundaries. Now uses wl-mirror to properly duplicate laptop screen to external display. Script runs at startup (with 'init' arg) and cycles on F7. Added wl-mirror to metapackage, fullscreen window rule for wl-mirror. --- home/.config/sway/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'home/.config/sway/config') diff --git a/home/.config/sway/config b/home/.config/sway/config index b8c10c7..2d85a6c 100644 --- a/home/.config/sway/config +++ b/home/.config/sway/config @@ -37,12 +37,12 @@ seat * hide_cursor 3000 # ── Output ──────────────────────────────────────────────────────────────────── output * bg #282828 solid_color -output * pos 0 0 # ── Window rules ────────────────────────────────────────────────────────────── for_window [class="feh"] floating enable for_window [app_id="imv"] floating enable for_window [class="Tor Browser"] floating enable +for_window [app_id="at.yrlf.wl_mirror"] fullscreen enable # ── Standard keybinds (sway defaults) ───────────────────────────────────────── bindsym $mod+Return exec $term @@ -155,3 +155,4 @@ bar { exec systemctl --user import-environment WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP exec mako +exec "sleep 1 && ~/.config/sway/display-toggle.sh init" -- cgit v1.2.3-70-g09d2