blob: 82fe7bc19f48c834a308d0f1f7cc1f2cab70a5cb (
plain) (
tree)
|
|
#!/bin/sh
if [ $# = 1 ]; then
if [ "$(echo "${1}" | cut -d ' ' -f 2)" = "volume-changed" ]; then
printf '\e[H\e[2J'
amixer get Master
fi
exit 0
fi
exec 2>/dev/null
printf '\e[?1049h\e[H\e[2J'
trap -- "printf '\e[?1049l'" SIGINT
bus listen "/tmp/example-bus" \'"${0/\'/\'\\\'\'}"\'' "${arg}"'
|