Skip to content

Commit f924eef

Browse files
committed
system-bluetooth-bluetoothctl: throttle output
1 parent 777aca1 commit f924eef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polybar-scripts/system-bluetooth-bluetoothctl/system-bluetooth-bluetoothctl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
bluetooth_print() {
4-
bluetoothctl | while read -r REPLY; do
4+
bluetoothctl | grep --line-buffered 'Device\|#' | while read -r REPLY; do
55
if [ "$(systemctl is-active "bluetooth.service")" = "active" ]; then
66
printf '#1'
77

0 commit comments

Comments
 (0)