Skip to content

Commit 919c62e

Browse files
authored
Wrap bluetoothctl so that it outputs data
1 parent 58be30b commit 919c62e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rofi-bluetooth

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
divider="---------"
2121
goback="Back"
2222

23+
bluetoothctl() {
24+
printf '%s\nquit' "$*" | bluetoothctl
25+
}
26+
2327
# Checks if bluetooth controller is powered on
2428
power_on() {
2529
if bluetoothctl show | grep -q "Powered: yes"; then

0 commit comments

Comments
 (0)