1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-19 08:45:36 +00:00
dotfiles/config/senpai/highlight
Luna Komorebi ca5c32ca63 feat: Add Senpai configuration files and highlight script.
- 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
2023-06-02 01:33:50 +02:00

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