summary refs log tree commit diff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/senpai/highlight10
-rw-r--r--.config/senpai/senpai.scfg9
2 files changed, 19 insertions, 0 deletions
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")"
diff --git a/.config/senpai/senpai.scfg b/.config/senpai/senpai.scfg
new file mode 100644
index 0000000..042c58d
--- /dev/null
+++ b/.config/senpai/senpai.scfg
@@ -0,0 +1,9 @@
+address chat.sr.ht
+
+username robertgzr@hibiki
+nickname robertgzr
+password-cmd pass show irc/chat.sr.ht
+
+pane-widths {
+	nicknames 12
+}