mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-19 08:45:36 +00:00
- Add new files and configuration settings for Senpai prox.lunax.cloud - Include a shell script to highlight notifications in Senpai configuration - Update omitted file changes not shown in diff summary
17 lines
359 B
Bash
17 lines
359 B
Bash
#!/bin/sh
|
|
|
|
escape() {
|
|
printf "%s" "$1" | sed 's#\\#\\\\#g'
|
|
}
|
|
|
|
if [ "$BUFFER" = "$SENDER" ]; then
|
|
title="[$BUFFER]"
|
|
else
|
|
title="[$BUFFER] $SENDER"
|
|
fi
|
|
|
|
# focus=$(swaymsg -t get_tree | jq -r '..|objects|select(.focused==true)|.name' | grep -c ^senpai)
|
|
|
|
#if [ "$focus" -eq 0 ] || [ "$HERE" -eq 0 ]; then
|
|
notify-send "$title" "$(escape "$MESSAGE")"
|
|
# fi
|