mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Adds a host_sway_dotfiles mechanism mirroring host_i3_dotfiles: hosts drop a host.conf into ~/.config/sway/ to override sway settings, and optionally a session-env file sourced by start-sway for per-host environment variables. The base sway/config defines $terminal and includes ~/.config/sway/host.conf; an empty placeholder ships with the base profile so the include never warns on hosts without overrides. nymph gets its own host.conf wrapping alacritty in prime-run (NVIDIA PRIME offload), bumping gaps/corner_radius, and pinning workspaces to eDP-1 / DP-1, plus a session-env exporting SWAY_UNSUPPORTED_GPU=1 and WLR_DRM_DEVICES for the hybrid Intel+NVIDIA setup. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
28 lines
773 B
Bash
Executable File
28 lines
773 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ -r /etc/profile ] && . /etc/profile
|
|
[ -r "$HOME/.profile" ] && . "$HOME/.profile"
|
|
|
|
export XDG_CURRENT_DESKTOP=sway
|
|
export XDG_SESSION_DESKTOP=sway
|
|
export XDG_SESSION_TYPE=wayland
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
export QT_QPA_PLATFORM='wayland;xcb'
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
export SDL_VIDEODRIVER=wayland
|
|
export GDK_BACKEND='wayland,x11'
|
|
|
|
export SSH_AUTH_SOCK="$HOME/.local/state/ssh-agent/socket"
|
|
|
|
# Per-host session environment (GPU / Wayland tuning, etc.)
|
|
[ -r "$HOME/.config/sway/session-env" ] && . "$HOME/.config/sway/session-env"
|
|
|
|
exec dbus-run-session sh -eu -c '
|
|
umask 077
|
|
printf "%s\n" "$DBUS_SESSION_BUS_ADDRESS" > "$HOME/.dbus-session-bus-address"
|
|
gpgconf --launch gpg-agent
|
|
"$HOME/.local/bin/update-turnstile-env"
|
|
exec sway
|
|
'
|