This tmux alert system didn't work as nicely as I imagined
This commit is contained in:
+3
-2
@@ -40,8 +40,9 @@ fi
|
||||
[[ -n ${OMARCHY_PATH:-} ]] || fail "OMARCHY_PATH is not set"
|
||||
[[ -f $OMARCHY_PATH/shell/shell.qml ]] || fail "omarchy-shell config not found: $OMARCHY_PATH/shell/shell.qml"
|
||||
|
||||
# qs matches instances by display, and tmux run-shell strips WAYLAND_DISPLAY
|
||||
# from hooks, so recover it from the compositor socket when it is missing.
|
||||
# qs matches instances by display, and a caller from outside the session (an
|
||||
# ssh or TTY omarchy-restart-shell, and the migrations it runs for) has none,
|
||||
# so recover it from the compositor socket.
|
||||
if [[ -z ${WAYLAND_DISPLAY:-} ]]; then
|
||||
socket=$(ls -t "${XDG_RUNTIME_DIR:-/run/user/$UID}"/wayland-[0-9]* 2>/dev/null | grep -v '\.lock$' | head -n1)
|
||||
[[ -n $socket ]] && export WAYLAND_DISPLAY=${socket##*/}
|
||||
|
||||
Reference in New Issue
Block a user