summary refs log tree commit diff
path: root/.config/senpai
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-02-09 00:35:54 +0100
committerRobert Günzler <r@gnzler.io>2022-02-09 00:35:54 +0100
commit9e01aabbf3296925acaa51000da1a18aa3ecd920 (patch)
treed4cfe28011d1a98f90b1c5b8edd3cee04ca2fab0 /.config/senpai
parentcf77221aea030dbb1b516b9e04f630236cfa0af1 (diff)
add senpai config
= irc client
Diffstat (limited to '.config/senpai')
-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
+}