#!/bin/sh tmux_dbus="$DBUS_SESSION_BUS_ADDRESS" fcitx5_pid=$(pgrep -f fcitx5 | head -n1) if [ -z "$fcitx5_pid" ]; then echo "No terminal process found matching: fcitx5" exit 1 fi fcitx5_dbus=$(tr '\0' '\n'