Add a fish function to start bluettooth

This commit is contained in:
Bruno Carlin 2020-05-30 21:49:36 +02:00
parent 87e9f20d6f
commit 07bec90994

View file

@ -0,0 +1,11 @@
function bt --description="Connect and disconnect bluetooth headphones"
switch $argv[1]
case on
echo -e "power on\nconnect \t\nquit" | bluetoothctl
case off
echo -e "disconnect\npower off\nquit" | bluetoothctl
case '*'
echo "Usage: bt on|off"
end
end