radio: files: senpai: Fix on-highlight script

main
Luis Guilherme Coelho 2024-11-24 13:30:43 -03:00
parent b554ff7c61
commit 175f65b36a
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
5 changed files with 14 additions and 15 deletions

View File

@ -0,0 +1,10 @@
#!/usr/bin/env -S fish
function escape
printf "%s" "$1" | string replace '\\' '\\\\'
end
notify-send --urgency=normal --expire-time=0 --category=Mail "[$BUFFER] $SENDER" "$(escape "$MESSAGE")"
mpv ~/.guix-home/profile/share/sounds/freedesktop/stereo/message.oga

View File

@ -1,10 +0,0 @@
#!/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

View File

@ -1,3 +0,0 @@
#!/bin/sh
read -p 'senpai password: '

View File

@ -3,7 +3,7 @@ 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
on-highlight-path /home/radio/.config/senpai/scripts/on-highlight.fish
tls true
typings false
mouse true

View File

@ -26,7 +26,8 @@
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages image-viewers)
#:use-module (gnu packages irc)
#|L|# #:use-module (gnu packages linux)
#|L|# #:use-module (gnu packages libcanberra)
#:use-module (gnu packages linux)
#|M|# #:use-module (gnu packages maths)
#:use-module (gnu packages mail)
#:use-module (gnu packages messaging)
@ -114,6 +115,7 @@
xdg-terminal-exec
#|glib |# dbus
#|image |# grim slurp
#|libcanberra|# sound-theme-freedesktop
#|terminals |# foot
#|toys |# wayneko
#|wm |# fnott rivercarro swww waybar