Add a fish function to start bluettooth
This commit is contained in:
parent
87e9f20d6f
commit
07bec90994
1 changed files with 11 additions and 0 deletions
11
fish/.config/fish/functions/bt.fish
Normal file
11
fish/.config/fish/functions/bt.fish
Normal file
|
@ -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
|
||||
|
Loading…
Add table
Reference in a new issue