#!/bin/bash device=$(~/.config/polybar/scripts/phone-path) connected="$(mconnectctl show-device $device | sed -n 9,9p | awk '{print $2}')" if [[ $connected == "false" ]]; then exit 1 fi