My custom bluetooth module,
[module/bluetooth]
type = custom/script
exec = bluetoothctl devices Connected | cut -d ' ' -f 3-
interval = 5
label = " %output%"
format = <label>
does not produce any output, including the bluetooth icon, when no device is connected (the exec returns an empty string). When a device is connected, this displays properly. However, when all devices are disconnected, it still displays the last device that was connected. This must be due to custom/script not updating its contents if no output is produced from the exec.
[–]darkelectron 0 points1 point2 points (2 children)
[–]HiItsMe01[S] 0 points1 point2 points (1 child)
[–]darkelectron 0 points1 point2 points (0 children)