aboutsummaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
Diffstat (limited to 'completions/bash')
-rw-r--r--completions/bash/swaybar2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/bash/swaybar b/completions/bash/swaybar
index 504588f1..1e085c65 100644
--- a/completions/bash/swaybar
+++ b/completions/bash/swaybar
@@ -27,7 +27,7 @@ _swaybar()
return
;;
-b|--bar_id)
- bars=($(swaymsg -t get_bar_config | sed -e '/^\[/,/\]$/{//d;s/^ *"\(.*\)",\?.*$/\1/}'))
+ bars=($(swaymsg -t get_bar_config | jq -r '.[]'))
COMPREPLY=($(compgen -W "${bars[*]}" -- "$cur"))
return
;;