From 07bec90994be550c4a673acd792c6f2dd44097e4 Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Sat, 30 May 2020 21:49:36 +0200 Subject: [PATCH] Add a fish function to start bluettooth --- fish/.config/fish/functions/bt.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 fish/.config/fish/functions/bt.fish diff --git a/fish/.config/fish/functions/bt.fish b/fish/.config/fish/functions/bt.fish new file mode 100644 index 0000000..879b1d1 --- /dev/null +++ b/fish/.config/fish/functions/bt.fish @@ -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 +