.emacs.d/scripts/emacs-hyprland-notify
2023-04-09 14:27:14 -07:00

7 lines
205 B
Bash
Executable file

#!/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