voidrice/.config/polybar/scripts/isactive-bluetooth.sh
2018-08-13 07:47:29 +05:00

8 lines
114 B
Bash
Executable File

#!/bin/sh
if [ "$(systemctl is-active bluetooth.service)" = "active" ]; then
echo "#1"
else
echo "#2"
fi