Coder Social home page Coder Social logo

signal-cli-wrapper's Introduction

signal-cli-wrapper

NOTE (2021-01-13) Rewrote from a bash to gawk script.

An awk (Gawk) wrapper script for easier use of signal-cli

Usage:

  • sig snd <name> "message" : Send to a name not a number (set names in config file)
  • sig rcv : Get messages, which are written to a log file
  • sig log : Read the logs more easily (to see receipts and read-receipts)
  • sig ids : Check the phone numbers you have keys for
  • sig num : Check the phone numbers in your config file
  • sig ckn <num> : Test if <num> (prefix with +) using Signal
  • sig cfg : Edit config file
  • sig cli : Show signal-cli usage
  • sig new : Show the most recent new messages and confirmations
  • sig cnv <name> : Display a conversation:

Note (2021-01-21): signal-cli seems not to be able to fully handle Signal’s version 2 groups; action gnu will probably fail. Actions gls, gad, glv still work on version 1 groups. See usage by just typing sig.

Also included: checksig a script to execute sig rcv and notify you via send-notify; run it as a cron job.

Installation

  1. Make the scripts executable (chmod u+x sig; chmod u+x checksig)
  2. Scripts and signal-cli must be in the shell’s $PATH
  3. Make sure scw_config.awk is in a directory present in environment variable $AWKPATH (set in .bash_profile, etc)
  4. (Optional) Add checksig to your crontab file. (AWKPATH and the sig path will need to be set for a non-user). E.g.:
0,10,20,30,40,50 * * * *   AWKPATH=/home/foo/awklib /home/foo/bin/checksig /home/foo/bin/sig

Then edit scw_config.awk to add short names for your numbers.

signal-cli-wrapper's People

Contributors

camwebb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.