This commit is contained in:
joachimschmidt557 2019-10-11 15:44:48 +02:00
parent 8b4173f078
commit 1f8acca322
2 changed files with 36 additions and 0 deletions

28
blue Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh
RECENT=$(fish -c "history | grep -v 'grep' | grep 'bluetoothctl connect' | awk '{print \$3;}'")
OPTION=$(echo "$RECENT" | cat <<EOF | dmenu)
On
Off
Disconnect
$RECENT
EOF
case "$OPTION" in
On)
bluetoothctl power on
;;
Off)
bluetoothctl power off
;;
Disconnect)
bluetoothctl disconnect
;;
"")
exit 1
;;
*)
bluetoothctl connect "$OPTION"
;;
esac