-
Notifications
You must be signed in to change notification settings - Fork 39
/
cybercyber
executable file
·95 lines (87 loc) · 3.82 KB
/
cybercyber
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
#
# cybercyber
# ----------
# A simple cyberscript which cyberpicks a random cyberword from a cyberlist,
# cyberprepends "cyber" to it, and cyberannouces it with espeak. Perfect for
# cyberuse as a cybergeneral cybernotification callback, cybermaking slightly
# cyberinappropriate cyberremarks at the wrong cybertime.
#
# To cyberuse with agl's xmpp-client (https://github.com/agl/xmpp-client),
# cyberput this into your ~/.xmpp-client cyberconfiguration file:
#
# "NotifyCommand": ["/path/to/cybercyber"],
# "IdleSecondsBeforeNotification": 300,
#
# Cyberrequirements: espeak
#
# :authors: Isis Agora Lovecruft, 0xa3adb67a2cdb8b35
# :license: MIT licence
# :version: 0.0.1
#------------------------------------------------------------------------------
CYBER="activism addict advocacy affair age agent anarchism"
CYBER=$CYBER" anarchy anarchist apocalypse architecture assault"
CYBER=$CYBER" attack babble babe banking battle begging blackmail"
CYBER=$CYBER" boyfriend bro buddy bullying caliphate capabilities cash"
CYBER=$CYBER" censorship chat colonialism command commuter computery conflict"
CYBER=$CYBER" celebrity conspiracy conversation cop cowboy crime critic crook cult"
CYBER=$CYBER" cyber cybering czar dating death defense dildonic dimension"
CYBER=$CYBER" discourse defense doctrine domain economy effects elite"
CYBER=$CYBER" emergency enterprise environment equivalents exploitation"
CYBER=$CYBER" erotic espionage ethics evangelist explosion extortion fashion"
CYBER=$CYBER" feminism flaneur flirting forces forensics fraud freak freedom"
CYBER=$CYBER" friend funeral future gambling gaming gang geek generation"
CYBER=$CYBER" ghetto girlfriend goths government group hacker"
CYBER=$CYBER" harassment hatred ho heaven heist hero heroin hug identity"
CYBER=$CYBER" immorality imperialism industry information infrastructure"
CYBER=$CYBER" intelligence intruder intrusion issues jargon jihad jihadi"
CYBER=$CYBER" journalism junk junkie kid laundering law libertarian"
CYBER=$CYBER" liberty literacy loafing looting locker loser lover"
CYBER=$CYBER" marketplace marriage martyr media mob money mosque nation"
CYBER=$CYBER" naut nerd network operations ninja ostracism payment peer penetration"
CYBER=$CYBER" person physical philosopher phobia pioneer piracy pirate police"
CYBER=$CYBER" politics porn pornography president"
CYBER=$CYBER" privacy prostitute protest punk revolution rific romance"
CYBER=$CYBER" sabotage scam security sex sexual shame shopper slacker samurai"
CYBER=$CYBER" slut smut space spacetime sphere spy squatter "
CYBER=$CYBER" squatting stalker stalking strategy"
CYBER=$CYBER" stud team terrorism terrorist theft thief threat"
CYBER=$CYBER" thug trail trash trespasser utopia villain war warfare"
CYBER=$CYBER" warrior weapon wizard witchcraft"
CYBER_LIST=($CYBER)
CYBER_LENGTH=${#CYBER_LIST[@]}
CYBER_WORD="${CYBER_LIST[$((RANDOM%CYBER_LENGTH))]}"
function usage ()
{
printf '%s [OPTIONS]\n\n' "$(basename $0)"
printf 'OPTIONS\n'
printf -- '-h\t\tThis cruft.\n'
printf -- '-a\t\tAll of the cybercybers!\n'
printf -- "-q\t\tDon't print to stdout.\n"
}
function allofthecybers ()
{
for CYBER_WORD in $CYBER ; do
printf " Cyber${CYBER_WORD}!\n"
espeak -x --ipa=1 -s 130 -k 20 -p 25 "Cyber${CYBER_WORD}!" 2>/dev/null
done
}
quiet=1
while getopts haqv f; do
case $f in
h) usage ; exit 0 ;;
a) allofthecybers ; shift ;;
q) quiet=1 ;;
v) quiet= ;;
# don't we need `shift 2` above? or `shift $(( OPTIND - 1))`?
esac
done
if test -z "$quiet" ; then
printf " Cyber${CYBER_WORD}!\n"
espeak -x --ipa=1 -s 130 -k 20 -p 25 "Cyber${CYBER_WORD}!" 2>/dev/null
else
espeak -x --ipa=1 -s 130 -k 20 -p 25 "Cyber${CYBER_WORD}!" 1>/dev/null 2>&1
fi
exit 0