#!/bin/sh # https://github.com/buckket/twtxt # # check https://galusik.fr/twtxt.txt # test -s $HOME/.dmenurc && . $HOME/.dmenurc OUTDIR=$HOME/code/www TWT=${OUTDIR}/twt/twtxt.txt PROMPT="twtxt: " MSG="$(xclip -o | dmenu -sb ${sb} -sf ${sf} -nb ${nb} -nf ${nf} -fn ${fn} -p "$PROMPT")" test -z "${MSG}" && exit printf '%s\t%s\n' "$(date +%FT%T%:Z)" "${MSG}" >> "${TWT}" # upload cd "${OUTDIR}" make twtxt