i3-companion: push bluetooth status to polybar

This commit is contained in:
Vincent Bernat 2021-07-16 00:52:54 +02:00
parent e79b7291ad
commit 2fd855e191
2 changed files with 132 additions and 7 deletions

View file

@ -34,11 +34,11 @@ modules-center = date
[bar/alone]
inherit = bar/common
modules-right = cpu memory brightness battery network disk dunst pulseaudio
modules-right = cpu memory brightness battery bluetooth network disk dunst pulseaudio
[bar/primary]
inherit = bar/common
modules-right = cpu memory brightness battery network disk dunst pulseaudio
modules-right = cpu memory brightness battery bluetooth network disk dunst pulseaudio
[bar/secondary]
inherit = bar/common
@ -106,6 +106,11 @@ type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/network.txt 2> /dev/null
initial = 1
[module/bluetooth]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/bluetooth.txt 2> /dev/null
initial = 1
[module/dunst]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/dunst.txt 2> /dev/null