mirror of https://github.com/mitchell/dotfiles.git
Modify how btre works and add sysz to default arch provision list
This commit is contained in:
parent
95a1a8caac
commit
fbe9eb511e
|
@ -1,20 +1,21 @@
|
||||||
function btre -a device -d 'Reconnect to a known bluetooth device'
|
function btre -a device -d 'Reconnect to a known bluetooth device'
|
||||||
set -l devices 00:1B:66:E3:07:3A CC:98:8B:3E:6B:9D
|
set -l devices CC:98:8B:3E:6B:9D 00:1B:66:E3:07:3A
|
||||||
|
set -l index 1
|
||||||
|
|
||||||
|
if test -n "$device"
|
||||||
|
set index $device
|
||||||
|
end
|
||||||
|
|
||||||
bluetoothctl power on
|
bluetoothctl power on
|
||||||
|
|
||||||
for device in $devices
|
bluetoothctl remove $devices[$index]
|
||||||
bluetoothctl remove $device
|
|
||||||
end
|
|
||||||
|
|
||||||
nohup bluetoothctl scan on >/dev/null &
|
nohup bluetoothctl scan on >/dev/null &
|
||||||
|
sleep 2
|
||||||
|
|
||||||
for device in $devices
|
bluetoothctl pair $devices[$index]
|
||||||
bluetoothctl pair $device
|
bluetoothctl trust $devices[$index]
|
||||||
sleep 1
|
bluetoothctl connect $devices[$index]
|
||||||
bluetoothctl trust $device
|
|
||||||
bluetoothctl connect $device
|
|
||||||
end
|
|
||||||
|
|
||||||
pkill bluetoothctl
|
pkill bluetoothctl
|
||||||
end
|
end
|
||||||
|
|
|
@ -67,7 +67,8 @@ function provision_terminal_env -d 'Install base terminal utilities and sync con
|
||||||
$base_pkgs \
|
$base_pkgs \
|
||||||
python-neovim \
|
python-neovim \
|
||||||
the_silver_searcher \
|
the_silver_searcher \
|
||||||
bat
|
bat \
|
||||||
|
sysz
|
||||||
|
|
||||||
set -l debian_pkgs \
|
set -l debian_pkgs \
|
||||||
$base_pkgs \
|
$base_pkgs \
|
||||||
|
|
Loading…
Reference in New Issue