I hereby claim:
- I am mlegner on github.
- I am mlegner (https://keybase.io/mlegner) on keybase.
- I have a public key ASCL-whKGaWzxap1F8aNc6M64BjbPJCQuxqdmv8UUBBIhgo
To claim this, I am signing this object:
[tool.poetry] | |
name = "" | |
version = "0.1.0" | |
description = "" | |
authors = [] | |
readme = "README.md" | |
[tool.poetry.dependencies] | |
python = "^3.8" |
#### EXPERIMENTAL | |
# Requires fzf | |
# Paste this in .bashrc | |
# The default command file id ~/.commands | |
COMMANDS_FILE="~/.commands" | |
__best_command__(){ | |
local cmd | |
shopt -u nocaseglob nocasematch | |
# cmd=$(cat $COMMANDS_FILE | fzf --height 50% | command grep '^ *[0-9]') && |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Connect to the bluetooth headphones properly and enable A2DP | |
mac="AA:AA:AA:AA:AA:AA" # the MAC address of the bluetooth headphones | |
cardname="bluez_card.AA_AA_AA_AA_AA_AA" # the audio-card name associated with the bluetooth headphones | |
timeout=5 # timeout for connecting | |
coproc bluetoothctl | |
echo -e "connect $mac" >&${COPROC[1]} | |
timeout $timeout grep -q "ServicesResolved: yes" <&${COPROC[0]} || echo -e "connect $mac" >&${COPROC[1]} |