aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/senpai/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-04-20 15:51:29 -0500
committerToby Vincent <tobyv13@gmail.com>2023-04-20 15:51:29 -0500
commit182f018e68601dc889214d1801798b3882e329dc (patch)
treefa6c4fc060d489f2bc0fc8498afeaa4e83c82f9c /senpai/.config
parent569b52941b00aebfbc8a475aabbc1944a887953c (diff)
feat: add senpai irc client config
Diffstat (limited to 'senpai/.config')
-rwxr-xr-xsenpai/.config/senpai/highlight11
-rw-r--r--senpai/.config/senpai/senpai.scfg8
2 files changed, 19 insertions, 0 deletions
diff --git a/senpai/.config/senpai/highlight b/senpai/.config/senpai/highlight
new file mode 100755
index 0000000..f5c5ad3
--- /dev/null
+++ b/senpai/.config/senpai/highlight
@@ -0,0 +1,11 @@
+#!/usr/bin/sh
+
+escape() {
+ printf "%s" "$1" | sed 's#\#\\#g'
+}
+
+FOCUS=$(swaymsg -t get_tree | jq '..|objects|select(.focused==true)|.name' | grep -c senpai)
+
+if [ "$HERE" -eq 0 ] || [ "$FOCUS" -eq 0 ]; then
+ notify-send "[$BUFFER] $SENDER" "$(escape "$MESSAGE")"
+fi
diff --git a/senpai/.config/senpai/senpai.scfg b/senpai/.config/senpai/senpai.scfg
new file mode 100644
index 0000000..f1b9bcd
--- /dev/null
+++ b/senpai/.config/senpai/senpai.scfg
@@ -0,0 +1,8 @@
+address irc.libera.chat
+
+nickname tobyvin
+realname Toby Vincent
+
+password-cmd pass show irc.libera.chat/tobyvin
+
+channel "#sr.ht" "#sr.ht.watercooler"