News for hackers. Stuff that matters.
Re:A year with the Elgato Stream Deck by memoriasit on Monday May 30, 2022 @02:30AM (#31556015)
Could you share that script?
Re:A year with the Elgato Stream Deck by Twirrim on Monday May 30, 2022 @12:22PM (#31560591)
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"
Re:A year with the Elgato Stream Deck by hammock on Monday May 30, 2022 @08:40AM (#31558345)
Would it work for Mac?
Re:A year with the Elgato Stream Deck by Twirrim on Monday May 30, 2022 @12:25PM (#31560619)
It relies on xdotool, which I don't think works on Mac?

If I was still on mac, I'd probably try and use hammerspoon somehow. I used that for a few bits of automation, and I know it had ways to choose applications.