#!/bin/bash WID=$(kdotool search --class betterbird | head -1) if [ -n "$WID" ]; then kdotool windowactivate "$WID" else betterbird & fi