Files
infra/dotfiles/desktop/.local/bin/update-turnstile-env
Fabio Scotto di Santolo 2d3fb543de desktop: add sway/swayfx profile (dormant) with waybar, kanshi, cliphist
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>
2026-05-16 19:39:11 +02:00

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