From fdcb39f3edae7d5cc38edb72091e0a1d3c60bedf Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Sun, 24 Nov 2024 13:30:43 -0300 Subject: [PATCH] radio: files: senpai: Fix on-highlight script --- .../files/.config/senpai/scripts/on-highlight.fish | 10 ++++++++++ .../radio/files/.config/senpai/scripts/on-highlight.sh | 10 ---------- .../radio/files/.config/senpai/scripts/pass.sh | 3 --- .../radio/files/.config/senpai/senpai.scfg | 2 +- home-environments/radio/packages.scm | 4 +++- 5 files changed, 14 insertions(+), 15 deletions(-) create mode 100755 home-environments/radio/files/.config/senpai/scripts/on-highlight.fish delete mode 100755 home-environments/radio/files/.config/senpai/scripts/on-highlight.sh delete mode 100755 home-environments/radio/files/.config/senpai/scripts/pass.sh diff --git a/home-environments/radio/files/.config/senpai/scripts/on-highlight.fish b/home-environments/radio/files/.config/senpai/scripts/on-highlight.fish new file mode 100755 index 0000000..ae5ffb2 --- /dev/null +++ b/home-environments/radio/files/.config/senpai/scripts/on-highlight.fish @@ -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 + diff --git a/home-environments/radio/files/.config/senpai/scripts/on-highlight.sh b/home-environments/radio/files/.config/senpai/scripts/on-highlight.sh deleted file mode 100755 index ff3dea8..0000000 --- a/home-environments/radio/files/.config/senpai/scripts/on-highlight.sh +++ /dev/null @@ -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 - diff --git a/home-environments/radio/files/.config/senpai/scripts/pass.sh b/home-environments/radio/files/.config/senpai/scripts/pass.sh deleted file mode 100755 index 4a998b2..0000000 --- a/home-environments/radio/files/.config/senpai/scripts/pass.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/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 index 4cf3c59..19a7a04 100644 --- a/home-environments/radio/files/.config/senpai/senpai.scfg +++ b/home-environments/radio/files/.config/senpai/senpai.scfg @@ -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 diff --git a/home-environments/radio/packages.scm b/home-environments/radio/packages.scm index 48b5f40..5207999 100644 --- a/home-environments/radio/packages.scm +++ b/home-environments/radio/packages.scm @@ -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