Hacker News new | past | comments | ask | show | jobs | submit login

Hopefully I get this right with the formatting.

    #!/bin/sh
    ZOOM=$(xdotool search --limit 1 --name "Zoom Meeting")
    ZOOM_WEBINAR=$(xdotool search --limit 1 --name "Zoom Webinar")
    
    if [ -z "${ZOOM}" ]; then
        xdotool windowactivate --sync "${ZOOM_WEBINAR}"
    elif [ -z "${ZOOM_WEBINAR}" ]; then
        xdotool windowactivate --sync "${ZOOM}"
    fi
    
    sleep 0.1
    xdotool key --clearmodifiers "alt+a"



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: