mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
New profile_desktop_sway role gated by desktop_sessions_enabled, with SwayFX effects, Waybar bar (1:1 with Polybar layout + pulseaudio), swayidle + swaylock-effects for locking, swayosd for OSD, cliphist for clipboard history and kanshi for multi-monitor profiles. Emptty gains WAYLAND_SESSIONS_PATH + wayland-sessions dir. start-sway wrapper handles session env (dbus-run-session, gpg-agent, turnstile env). Profile stays dormant until a host opts in via desktop_sessions_enabled. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
16 lines
424 B
Bash
Executable File
16 lines
424 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
if ! command -v turnstile-update-runit-env >/dev/null 2>&1; then
|
|
exit 0
|
|
fi
|
|
|
|
vars="DISPLAY XAUTHORITY DBUS_SESSION_BUS_ADDRESS SSH_AUTH_SOCK XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE"
|
|
|
|
[ -n "${WAYLAND_DISPLAY:-}" ] && vars="$vars WAYLAND_DISPLAY"
|
|
[ -n "${SWAYSOCK:-}" ] && vars="$vars SWAYSOCK"
|
|
|
|
# shellcheck disable=SC2086
|
|
turnstile-update-runit-env $vars >/dev/null 2>&1 || true
|