blob: 602014e344da3996b7f3e04d2803c812eee5f686 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
[ -n "$1" ] || exit 127
socket=${SWAYSOCK:-$I3SOCK}
pipe="$(printf "%s/i3status-wrapper.%s.pipe" \
"$(dirname "$socket")" \
"$(basename "$socket" \
| sed -n 's/^[^0-9]*\([0-9][0-9.]*[0-9]\).*/\1/p')")"
[ -w "$pipe" ] || exit 127
echo "$@" >"$pipe"
|