1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-19 08:45:36 +00:00

Fix senpai notification not appearing when window is not focused

This commit is contained in:
Luna 2023-06-02 10:25:52 +02:00
parent 0a0a69e8c0
commit d5796fc574

View file

@ -10,8 +10,8 @@ else
title="[$BUFFER] $SENDER"
fi
# focus=$(swaymsg -t get_tree | jq -r '..|objects|select(.focused==true)|.name' | grep -c ^senpai)
focus=$(xdotool getwindowfocus getwindowname |grep -c senpai)
#if [ "$focus" -eq 0 ] || [ "$HERE" -eq 0 ]; then
if [ "$focus" -eq 0 ]; then
notify-send "$title" "$(escape "$MESSAGE")"
# fi
fi