summaryrefslogtreecommitdiffstats
path: root/remote-notify-client.sh
blob: 5bcca1181d4ba541d58e77b24894a91fbc95038c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

[[ -z $DISPLAY ]] && exit 1;

exec 0<&-

sup ssh mistral 'socat unix-connect:notify.sock stdout' |
	while read heading message; do
		if [[ -n $heading ]]; then
			notify-send --hint=int:transient:1 -t 5000 -- "${heading}" "${message}";
		fi
	done