Last active
December 24, 2015 05:39
-
-
Save dlgg/6751950 to your computer and use it in GitHub Desktop.
Shell script for irssi notification via ssh with i3wm and twmn (https://github.com/sboli/twmn)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://github.com/sboli/twmn | |
DEST=falkreath.ccrypto.org | |
PARAMS="--pos bottom_right -d 5000 --bg black --fg red --aot" | |
ssh -4 ${DEST} "tail -fn 0 .irssi/fnotify "|while read heading message; do | |
MSG=$(echo "% ${heading} % ${message} %"|sed -e 's/"//g' -e 's/ / /g') | |
twmnc -t IRC -c "${MSG}" ${PARAMS} | |
done & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
je <3