From 9e01aabbf3296925acaa51000da1a18aa3ecd920 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 9 Feb 2022 00:35:54 +0100 Subject: add senpai config = irc client --- .config/senpai/highlight | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/senpai/highlight (limited to '.config/senpai/highlight') diff --git a/.config/senpai/highlight b/.config/senpai/highlight new file mode 100644 index 0000000..aaa2e43 --- /dev/null +++ b/.config/senpai/highlight @@ -0,0 +1,10 @@ +#!/bin/sh +escape() { + printf "%s" "$1" | sed 's#\\#\\\\#g' +} +# FOCUS=$(swaymsg -t get_tree | jq '..|objects|select(.focused==true)|.app_id' | grep -c senpai) +# if [ "$HERE" -eq 0 ] || [ "$FOCUS" -eq 0 ]; then +# notify-send "[$BUFFER] $SENDER" "$(escape "$MESSAGE")" +# fi +notify-send -a senpai -i "$(iconez -n message-reply-text-outline)" -c audible \ + "[$BUFFER] $SENDER" "$(escape "$MESSAGE")" -- cgit 1.4.1