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

7 lines
209 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 'class:^emacs$'
EOF