commit b2af203c8f9fc7497a8559b0f029a6297a8df2fe
parent fb8629ffc2bfcf3ac25c663686d2209e16846d26
Author: Yuval Langer <yuvallangerontheroad@gmail.com>
Date: Wed, 24 Nov 2021 23:23:31 +0200
Rename to the new name.
Diffstat:
4 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/clipboard-speak b/clipboard-speak
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+clipboard_speaker_directory="$HOME/.clipboard-speaker"
+lock_file_path="$clipboardspeakerdir/lock"
+pid_file_path="$clipboardspeakerdir/pid"
+fifo_path="$clipboardspeakerdir/fifo"
+speak_ng_path="$(which speak-ng)"
+
+mkdir -p "$clipboard_speaker_directory"
+mkfifo --mode=600 "$fifo_path"
+
+xsel -p | tr '\n' ' ' > "$fifo_path" &
+
+daemonize -l "$lock_file_path" -p "$pid_file_path" "$speak_ng_path" -f "$fifo_path"
diff --git a/clipboard-speak-kill b/clipboard-speak-kill
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+clipboard_speaker_directory="$HOME/.clipboard-speaker/"
+pid_file_path="$clipboard_speaker_directory/pid"
+
+kill "$(cat "$pid_file_path")"
diff --git a/my-speak b/my-speak
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-myspeakdir="$HOME/.my-speak"
-lockfilepath="$myspeakdir/lock"
-pidfilepath="$myspeakdir/pid"
-pipefile="$myspeakdir/text_named_pipe"
-speakngpath="$(which speak-ng)"
-
-mkdir -p "$myspeakdir"
-mkfifo --mode=600 "$pipefile"
-
-xsel -p | tr '\n' ' ' > "$pipefile" &
-
-daemonize -l "$lockfilepath" -p "$pidfilepath" "$speakngpath" -f "$pipefile"
diff --git a/my-speak-kill b/my-speak-kill
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-myspeakdir="$HOME/.my-speak/"
-pidfilepath="$myspeakdir/pid"
-
-kill "$(cat "$pidfilepath")"