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:
parent
0a0a69e8c0
commit
d5796fc574
1 changed files with 3 additions and 3 deletions
|
@ -10,8 +10,8 @@ else
|
||||||
title="[$BUFFER] $SENDER"
|
title="[$BUFFER] $SENDER"
|
||||||
fi
|
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")"
|
notify-send "$title" "$(escape "$MESSAGE")"
|
||||||
# fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue