diff options
| author | ache <ache@ache.one> | 2026-02-20 10:21:40 +0100 |
|---|---|---|
| committer | ache <ache@ache.one> | 2026-02-20 10:21:40 +0100 |
| commit | 5594301768b73895cbf9750070babb3c71685b8a (patch) | |
| tree | 47cc61081d5be3d29f65cc91cc1746eba724d924 | |
| parent | fix: Make the notify on long commands works when there is no X11 server (diff) | |
fix: Notification beep when NOT the current window
| -rw-r--r-- | functions/fish_prompt.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 0caa8bf..e586f92 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -9,7 +9,7 @@ set -g cmd_notification_threshold 15000 function __d12_prompt__check_duration set -l active_window_id (xdotool getactivewindow 2> /dev/null) - if test "$active_window_id" = "$WINDOWID" + if test "$active_window_id" != "$WINDOWID" if test "$CMD_DURATION" if test "$CMD_DURATION" -ge $cmd_notification_threshold __d12_prompt__notify_completion "$CMD_DURATION" |