Skip to content

Instantly share code, notes, and snippets.

@dlgg
Last active December 24, 2015 05:39
Show Gist options
  • Save dlgg/6751950 to your computer and use it in GitHub Desktop.
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)
#!/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 &
Copy link

ghost commented Sep 30, 2013

je <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment