From ca5c32ca6377de4f21ee8a4dd704baa0f0ce50da Mon Sep 17 00:00:00 2001 From: Luna Komorebi Date: Fri, 2 Jun 2023 01:33:50 +0200 Subject: [PATCH] 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 --- config/senpai/highlight | 17 +++++++++++++++++ config/senpai/senpai.scfg | 15 +++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 config/senpai/highlight create mode 100644 config/senpai/senpai.scfg diff --git a/config/senpai/highlight b/config/senpai/highlight new file mode 100644 index 0000000..a072979 --- /dev/null +++ b/config/senpai/highlight @@ -0,0 +1,17 @@ +#!/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 diff --git a/config/senpai/senpai.scfg b/config/senpai/senpai.scfg new file mode 100644 index 0000000..c568617 --- /dev/null +++ b/config/senpai/senpai.scfg @@ -0,0 +1,15 @@ +# to be used with https://github.com/ptrcnull/kouhai +address prox.lunax.cloud:6667 +nickname lunax +username lunax +tls false +password-cmd secret-tool lookup irc lunax +typings false +pane-widths { + nicknames 0 + channels 24 + members 0 +} +colors { + unread "#00ffff" +}