From 2e3a9b9eb83c89d6e94600eb8c19de2dde5df258 Mon Sep 17 00:00:00 2001 From: eriedaberrie Date: Wed, 5 Feb 2025 15:33:23 +0000 Subject: [PATCH] Fix hyprctl dispatch in notifications for focusing window --- scripts/emacs-hyprland-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/emacs-hyprland-notify b/scripts/emacs-hyprland-notify index f6ff56f..b68bbad 100755 --- a/scripts/emacs-hyprland-notify +++ b/scripts/emacs-hyprland-notify @@ -2,5 +2,5 @@ exec nohup sh -s -- "$@" <<-'EOF' >/dev/null 2>&1 & STATUS="$(notify-send --action='focusEmacs,Focus EmacsClient' "$@")" - [ "$STATUS" = 0 ] && exec hyprctl dispatch focuswindow '^(emacs)$' + [ "$STATUS" = 0 ] && exec hyprctl dispatch focuswindow 'class:^emacs$' EOF