The sarcasm formatter provides JS, Python, and Bash support for formatting text sArCaStIcAlLy, meaning with alternating lower and upper-case letters, and provides optional parametrization such as choosing the starting case.
The script can be run directly from its containing folder (and thus, can simply be installed by downloading or cloning it from here - and adding run permissions):
git clone https://github.com/TheChymera/sarcasm-formatter.git /your/sarcasm-formatter/directory
cd /your/sarcasm-formatter/directory/bin
chmod +x sarcasm.shFor Gentoo Linux and Derivatives, mkstage4 is also available in Portage via the Chymeric Overlay. On any Gentoo system, after having enabled the aforementioned overlay, just run the following command:
emerge app-backup/sarcasm-formatterIf you are running the script from the containing folder (first install method) please make sure you use the ./sarcasm.sh command instead of just sarcasm!
# sarcasm how do I use this
"hOw dO i uSe ThiS" written to clipboard.The notification at the end indicates that in addition to presenting the text for manual copy, sarcasm will by default place it into your clipboard (xclip or wl-copy, auto-detected).
Though convenient, this also means your clipboard will be overwritten.
This can be disabled via the -n parameter.