1 2 3 4 5 6 7 8 9
#!/bin/sh set -eu screens="$(cat)" if [ "$(echo "$screens" | wc -l)" -gt 1 ]; then echo "$screens" | wofi -d -p "Select screen to share" else echo "$screens" fi