commit bc630c8978666a873677ea5cd346ade8c0a796fd parent 062af3f67e814ac804ee4dfd4b081aa9585fef50 Author: Yuval Langer <yuval.langer@gmail.com> Date: Tue, 2 Oct 2018 20:58:12 +0300 Add my-speak and my-speak-kill which are bound to Super-z and Super-x Diffstat:
A | bin/my-speak | | | 11 | +++++++++++ |
A | bin/my-speak-kill | | | 6 | ++++++ |
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/bin/my-speak b/bin/my-speak @@ -0,0 +1,11 @@ +#!/bin/sh + +myspeakdir="$HOME/.my-speak/" +lockfilepath="$myspeakdir/lock" +pidfilepath="$myspeakdir/pid" +speakngpath="$(which speak-ng)" + +mkdir -p "$myspeakdir" + +ourLine="$(xsel | unlines)" +daemonize -l "$lockfilepath" -p "$pidfilepath" "$speakngpath" "$ourLine" diff --git a/bin/my-speak-kill b/bin/my-speak-kill @@ -0,0 +1,6 @@ +#!/bin/sh + +myspeakdir="$HOME/.my-speak/" +pidfilepath="$myspeakdir/pid" + +kill "$(cat "$pidfilepath")"