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 +