Files
dotfiles/polybar/scripts/toggle_bluetooth.sh
T
2025-05-29 18:18:25 +02:00

12 lines
200 B
Bash
Executable File

#!/bin/sh
# Author by : Daniel Heras
# Mail : dani.heras@hotmail.com
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
then
bluetoothctl power on
else
bluetoothctl power off
fi