#!/bin/sh exec nohup sh -s -- "$@" <<-'EOF' >/dev/null 2>&1 & STATUS="$(notify-send --action='focusEmacs,Focus EmacsClient' "$@")" [ "$STATUS" = 0 ] && exec hyprctl dispatch focuswindow '^(emacs)$' EOF