dotfiles/.local/bin/statusbar/headset_connected

7 lines
139 B
Plaintext
Raw Normal View History

2020-07-04 14:23:27 +02:00
#!/bin/bash
if pactl list sinks | grep -qE 'device.icon_name = \"audio-(headset|headphones)-bluetooth\"'; then
echo 🎧
else
echo ""
fi