From 474f071cb93b365c32baa9736b9d478b2fd3c819 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Wed, 11 May 2022 14:01:06 +0200 Subject: [PATCH] Add 'fzf' bluetooth wrapper script --- .bin/fzf-bluetooth | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .bin/fzf-bluetooth diff --git a/.bin/fzf-bluetooth b/.bin/fzf-bluetooth new file mode 100755 index 0000000..f40a882 --- /dev/null +++ b/.bin/fzf-bluetooth @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +options="Mouse\nHeadphones" + +selected="$(echo -e "$options" | fzf)" + +case "$selected" in + "Mouse") toggle-bt-device E4:19:21:56:C8:70;; + "Headphones") toggle-bt-device 38:18:4C:D4:74:42;; +esac