- Restore desktop DP-3=primary/DP-2=secondary workspace mapping that broke when workspace routing switched from name-matching to raw geometric ordering. - Extract shared laptop/desktop detection + output ranking into lib-outputs.sh (battery presence selects the profile automatically), sourced by both select-workspace.sh and the new apply-outputs.sh, so keybind routing and monitor placement can never disagree. - Add apply-outputs.sh: on the laptop, automatically positions whatever external display is plugged in (and re-runs on hotplug via swaymsg -t subscribe), making it primary. No-op on the desktop, which keeps its static fixed-arrangement config.
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
font pango:JetBrainsMono Nerd Font 10
|
|
gaps inner 8
|
|
gaps outer 4
|
|
default_border pixel 2
|
|
default_floating_border pixel 2
|
|
|
|
client.focused #3b82f6 #000000 #60a5fa #2563eb #3b82f6
|
|
client.focused_inactive #171717 #000000 #737373 #171717 #171717
|
|
client.unfocused #0a0a0a #000000 #525252 #0a0a0a #0a0a0a
|
|
client.urgent #60a5fa #000000 #60a5fa #3b82f6 #60a5fa
|
|
|
|
for_window [app_id="system-monitor"] floating enable, resize set 1000 700, move position center
|
|
|
|
output * bg ~/.config/sway/wallpapers/blue-horizon.svg fill
|
|
|
|
# Desktop-only dual-monitor arrangement: DP-3 is the centered primary
|
|
# display, DP-2 sits immediately to its left. Sway silently ignores
|
|
# `output` directives for names that don't exist, so this is a no-op on
|
|
# the laptop, where scripts/apply-outputs.sh instead positions whatever
|
|
# external display gets plugged in dynamically (see that script and
|
|
# scripts/lib-outputs.sh for the shared laptop/desktop detection logic).
|
|
#
|
|
# Workspace-to-output routing isn't pinned here either way:
|
|
# scripts/select-workspace.sh (shared with apply-outputs.sh) assigns
|
|
# workspaces 1-10/11-20/... to whichever outputs are connected, ranked
|
|
# primary-first, so both keybinds and monitor placement always agree on
|
|
# which output is "first" without any per-host config.
|
|
output DP-3 position 0 0
|
|
output DP-2 position -2560 0
|
|
|
|
output DP-3 scale 1
|
|
output DP-2 scale 1
|