From 215f23ac087d44f90aec6be93874734837af3598 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Tue, 19 Nov 2024 11:56:35 -0300 Subject: [PATCH] radio: files: Add senpai --- .../files/.config/senpai/scripts/on-highlight.sh | 10 ++++++++++ .../radio/files/.config/senpai/scripts/pass.sh | 3 +++ .../radio/files/.config/senpai/senpai.scfg | 13 +++++++++++++ 3 files changed, 26 insertions(+) create mode 100755 home-environments/radio/files/.config/senpai/scripts/on-highlight.sh create mode 100755 home-environments/radio/files/.config/senpai/scripts/pass.sh create mode 100644 home-environments/radio/files/.config/senpai/senpai.scfg diff --git a/home-environments/radio/files/.config/senpai/scripts/on-highlight.sh b/home-environments/radio/files/.config/senpai/scripts/on-highlight.sh new file mode 100755 index 0000000..ff3dea8 --- /dev/null +++ b/home-environments/radio/files/.config/senpai/scripts/on-highlight.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +escape() { + printf "%s" "$1" | sed 's#\#\\#g' +} + +notify-send --urgency=normal --expire-time=0 --category=Mail "[$BUFFER] $SENDER" "$(escape "$MESSAGE")" + +mpv ~/.guix-home/profile/share/sounds/freedesktop/stereo/complete.oga + diff --git a/home-environments/radio/files/.config/senpai/scripts/pass.sh b/home-environments/radio/files/.config/senpai/scripts/pass.sh new file mode 100755 index 0000000..4a998b2 --- /dev/null +++ b/home-environments/radio/files/.config/senpai/scripts/pass.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +read -p 'senpai password: ' diff --git a/home-environments/radio/files/.config/senpai/senpai.scfg b/home-environments/radio/files/.config/senpai/senpai.scfg new file mode 100644 index 0000000..4cf3c59 --- /dev/null +++ b/home-environments/radio/files/.config/senpai/senpai.scfg @@ -0,0 +1,13 @@ +address chat.sr.ht +nickname anemofilia +password-cmd pass show senpai/password +highlight anemofilia: anemofilia, radix saayix cargo2guix misako +channel "#coreboot" "#fossandcrafts" "#fsf" "#gnu" "#guix" "#guile" "#hurd" "#ibmthinkpad" "#kakoune" "#lisp" "#lobsters" "#scheme" "#spritely" "#savannah" "#whereiseveryone" +on-highlight-path /home/radio/.config/senpai/scripts/on-highlight.sh +tls true +typings false +mouse true +pane-widths { + nicknames 20 + channels 20 +}