aboutsummaryrefslogtreecommitdiff
path: root/.config/polybar/scripts/toggle_bluetooth.sh
blob: 899d5ec5888395c494f23e24a94ed8debc52469d (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
then
  bluetoothctl power on
else
  bluetoothctl power off
fi