~fredg/mybin

ref: 12c277c3275068a1ba95d495a7234eec21a501ff mybin/twt -rwxr-xr-x 410 bytes
12c277c3 — Fred. Galusik gitignore 1 year, 24 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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