.emacs.d/scripts/emacs-hyprland-notify

7 lines
205 B
Plaintext
Raw Normal View History

2023-04-09 14:27:14 -07:00
#!/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